[dev] [xssstate] Use correct format strings

From: Petr Šabata <contyk_AT_redhat.com>
Date: Tue, 7 May 2013 16:16:44 +0200

Both idle and til_or_since are defined as unsigned longs.

---
 xssstate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xssstate.c b/xssstate.c
index 57536b2..1eeca29 100644
--- a/xssstate.c
+++ b/xssstate.c
_AT_@ -88,14 +88,14 @@ main(int argc, char *argv[]) {
 			printf("0\n");
 			break;
 		case ScreenSaverOff:
-			printf("%ld\n", info->til_or_since);
+			printf("%lu\n", info->til_or_since);
 			break;
 		case ScreenSaverDisabled:
 			printf("-1\n");
 			break;
 		}
 	} else if (showidle) {
-		printf("%ld\n", info->idle);
+		printf("%lu\n", info->idle);
 	}
 
 
-- 
1.8.1.4
Received on Tue May 07 2013 - 16:16:44 CEST

This archive was generated by hypermail 2.3.0 : Tue May 07 2013 - 16:24:05 CEST