Use estrtonum in sleep(1)

This commit is contained in:
sin 2015-01-30 14:01:45 +00:00
parent ab149deebe
commit 48cc842aa9

View File

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