diff options
author | bapt <bapt@FreeBSD.org> | 2014-07-16 13:52:05 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-07-16 13:52:05 +0000 |
commit | 508ee54556732e7fb194230700780b603987b02a (patch) | |
tree | faeb615d1feda5a7904c2af3c4b113205aea18e7 /usr.bin | |
parent | 9628fa2be59615764b5345b7f2329098f8df7ef1 (diff) | |
download | FreeBSD-src-508ee54556732e7fb194230700780b603987b02a.zip FreeBSD-src-508ee54556732e7fb194230700780b603987b02a.tar.gz |
Sort properly the headers
While here space/tabs cleanup
Reviewed by: kib
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 b40594e..8171600 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"); } |