[hackers] [sbase] sleep: Allow sleeping for 136 years || sin

From: <git_AT_suckless.org>
Date: Fri, 30 Jan 2015 14:26:27 +0100 (CET)

commit c900829617b6d9232e51fe657237328949c08d92
Author: sin <sin_AT_2f30.org>
Date: Fri Jan 30 13:24:55 2015 +0000

    sleep: Allow sleeping for 136 years

diff --git a/sleep.c b/sleep.c
index 8ed32f7..5c2d2f4 100644
--- a/sleep.c
+++ b/sleep.c
_AT_@ -23,7 +23,7 @@ main(int argc, char *argv[])
         if (argc < 1)
                 usage();
 
- seconds = estrtol(argv[0], 0);
+ seconds = estrtoul(argv[0], 0);
         while ((seconds = sleep(seconds)) > 0)
                 ;
         return 0;
Received on Fri Jan 30 2015 - 14:26:27 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 30 2015 - 14:36:09 CET