diff options
author | ngie <ngie@FreeBSD.org> | 2015-05-16 22:53:26 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-05-16 22:53:26 +0000 |
commit | 4461554d627d7036a84d113cb5cd724b4dd29e59 (patch) | |
tree | 8406f89c5ea0fc908c88b4fcfffa9a007161bb1d /tools | |
parent | 545ec37cd08e15e4d46bff6876cf18aba9531a26 (diff) | |
download | FreeBSD-src-4461554d627d7036a84d113cb5cd724b4dd29e59.zip FreeBSD-src-4461554d627d7036a84d113cb5cd724b4dd29e59.tar.gz |
Fix more warnings related to missing headers
MFC after: 1 week
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/p1003_1b/main.c | 1 | ||||
-rw-r--r-- | tools/regression/p1003_1b/prutil.c | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/regression/p1003_1b/main.c b/tools/regression/p1003_1b/main.c index 0e87c6c..23c3b02 100644 --- a/tools/regression/p1003_1b/main.c +++ b/tools/regression/p1003_1b/main.c @@ -1,5 +1,6 @@ /* $FreeBSD$ */ #include <stdio.h> +#include <string.h> int fifo(int argc, char *argv[]); int memlock(int argc, char *argv[]); diff --git a/tools/regression/p1003_1b/prutil.c b/tools/regression/p1003_1b/prutil.c index e0e3d6f..2910b7f 100644 --- a/tools/regression/p1003_1b/prutil.c +++ b/tools/regression/p1003_1b/prutil.c @@ -1,10 +1,11 @@ +#include <err.h> #include <errno.h> -#include <unistd.h> #include <sched.h> #include <stdio.h> - -#include <err.h> +#include <stdlib.h> #include <sysexits.h> +#include <unistd.h> + #include "prutil.h" /* @@ -12,7 +13,7 @@ */ void quit(const char *text) { - err(errno, text); + err(errno, "%s", text); } char *sched_text(int scheduler) |