svn commit: r283018 - head/tools/regression/p1003_1b
Garrett Cooper
ngie at FreeBSD.org
Sat May 16 22:53:28 UTC 2015
Author: ngie
Date: Sat May 16 22:53:26 2015
New Revision: 283018
URL: https://svnweb.freebsd.org/changeset/base/283018
Log:
Fix more warnings related to missing headers
MFC after: 1 week
Modified:
head/tools/regression/p1003_1b/main.c
head/tools/regression/p1003_1b/prutil.c
Modified: head/tools/regression/p1003_1b/main.c
==============================================================================
--- head/tools/regression/p1003_1b/main.c Sat May 16 22:38:16 2015 (r283017)
+++ head/tools/regression/p1003_1b/main.c Sat May 16 22:53:26 2015 (r283018)
@@ -1,5 +1,6 @@
/* $FreeBSD$ */
#include <stdio.h>
+#include <string.h>
int fifo(int argc, char *argv[]);
int memlock(int argc, char *argv[]);
Modified: head/tools/regression/p1003_1b/prutil.c
==============================================================================
--- head/tools/regression/p1003_1b/prutil.c Sat May 16 22:38:16 2015 (r283017)
+++ head/tools/regression/p1003_1b/prutil.c Sat May 16 22:53:26 2015 (r283018)
@@ -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)
More information about the svn-src-head
mailing list