Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2015 22:53:27 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283018 - head/tools/regression/p1003_1b
Message-ID:  <201505162253.t4GMrRVB056129@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505162253.t4GMrRVB056129>