commit 8308a0086f3e79629734c3dcef3adcf03a990bf5
parent 7d3a822d38a4f24852cf6f03547e168f497e2087
Author: Petr Ĺ abata <contyk@redhat.com>
Date: Tue, 7 May 2013 16:16:44 +0200
Use correct format strings
Both idle and til_or_since are defined as unsigned longs.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xssstate.c b/xssstate.c
@@ -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);
}