Introduction
Introduction Statistics Contact Development Disclaimer Help
Use correct format strings - xssstate - a simple utility to get the X screensav…
git clone git://git.suckless.org/xssstate
Log
Files
Refs
README
LICENSE
---
commit 8308a0086f3e79629734c3dcef3adcf03a990bf5
parent 7d3a822d38a4f24852cf6f03547e168f497e2087
Author: Petr Ĺ abata <[email protected]>
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 <[email protected]>
Diffstat:
M xssstate.c | 4 ++--
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);
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.