sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 48cc842aa905ebc8694c53940a2facb30ec23d67
parent ab149deebeab74ff9d841e103ae5df8e4b6379d7
Author: sin <sin@2f30.org>
Date:   Fri, 30 Jan 2015 14:01:45 +0000

Use estrtonum in sleep(1)

Diffstat:
sleep.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sleep.c b/sleep.c @@ -23,7 +23,7 @@ main(int argc, char *argv[]) if (argc < 1) usage(); - seconds = estrtoul(argv[0], 0); + seconds = estrtonum(argv[0], 0, UINT_MAX); while ((seconds = sleep(seconds)) > 0) ; return 0;