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
@@ -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


Reply via email to