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

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:23 +0100 (CET)

commit e8cb7f5ef0e1ebbc39247b27d479f03297761324
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 Tue Mar 24 2015 - 23:53:23 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:04:38 CET