diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-07-16 13:52:05 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-07-16 13:52:05 +0000 |
| commit | f62bbc4d90754889d0923593598c7d35fcdc054c (patch) | |
| tree | faeb615d1feda5a7904c2af3c4b113205aea18e7 /usr.bin | |
| parent | 5b8b238645686b7602842cc68d643e81ddc1869b (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/timeout/timeout.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/timeout/timeout.c b/usr.bin/timeout/timeout.c index b40594eead8a1..817160003e36c 100644 --- a/usr.bin/timeout/timeout.c +++ b/usr.bin/timeout/timeout.c @@ -28,6 +28,9 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/time.h> +#include <sys/wait.h> + #include <err.h> #include <errno.h> #include <getopt.h> @@ -36,8 +39,6 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/time.h> -#include <sys/wait.h> #include <sysexits.h> #include <unistd.h> @@ -90,7 +91,7 @@ parse_duration(const char *duration) default: errx(EX_USAGE, "invalid duration"); } - + if (ret < 0 || ret >= 100000000UL) errx(EX_USAGE, "invalid duration"); @@ -114,7 +115,7 @@ parse_signal(const char *str) if (strcasecmp(str, sys_signame[i]) == 0) return (i); } - + errx(EX_USAGE, "invalid signal"); } |
