Print strtonum(3)-style error messages on invalid numeric input.
authorcheloha <cheloha@openbsd.org>
Sun, 4 Feb 2018 02:18:15 +0000 (02:18 +0000)
committercheloha <cheloha@openbsd.org>
Sun, 4 Feb 2018 02:18:15 +0000 (02:18 +0000)
commit9d66e5ee31180c1f9f76b4455b44bcc11007a310
tree7210db7935c6148b24c65be39a565f2bf88af73e
parentc9cf7af09feb1ca51ff639f83aefc02a67d83063
Print strtonum(3)-style error messages on invalid numeric input.

More informative than the usage message.

While here, no need to return EINVAL: just return 1 if we overflow.

ok jca@ schwarze@
bin/sleep/sleep.c