[hackers] [xssstate] Use correct format strings || Petr Šabata

From: <git_AT_suckless.org>
Date: Tue, 07 May 2013 16:56:15 +0200

commit 8308a0086f3e79629734c3dcef3adcf03a990bf5
Author: Petr Šabata <contyk_AT_redhat.com>
Date: Tue May 7 16:16:44 2013 +0200

    Use correct format strings
    
    Both idle and til_or_since are defined as unsigned longs.
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

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
");
                         break;
                 case ScreenSaverOff:
- printf("%ld
", info->til_or_since);
+ printf("%lu
", info->til_or_since);
                         break;
                 case ScreenSaverDisabled:
                         printf("-1
");
                         break;
                 }
         } else if (showidle) {
- printf("%ld
", info->idle);
+ printf("%lu
", info->idle);
         }
 
 
Received on Tue May 07 2013 - 16:56:15 CEST

This archive was generated by hypermail 2.3.0 : Tue May 07 2013 - 17:00:11 CEST