Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2018 23:49:23 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335269 - head/tools/tools/netrate/http
Message-ID:  <201806162349.w5GNnNOJ081609@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sat Jun 16 23:49:22 2018
New Revision: 335269
URL: https://svnweb.freebsd.org/changeset/base/335269

Log:
  netrate: build with WARNS=6
  
  Tested with amd64, i386

Modified:
  head/tools/tools/netrate/http/Makefile
  head/tools/tools/netrate/http/http.c

Modified: head/tools/tools/netrate/http/Makefile
==============================================================================
--- head/tools/tools/netrate/http/Makefile	Sat Jun 16 23:47:59 2018	(r335268)
+++ head/tools/tools/netrate/http/Makefile	Sat Jun 16 23:49:22 2018	(r335269)
@@ -2,7 +2,6 @@
 
 PROG=	http
 MAN=
-WARNS?=	3
 LIBADD=	pthread
 
 .include <bsd.prog.mk>

Modified: head/tools/tools/netrate/http/http.c
==============================================================================
--- head/tools/tools/netrate/http/http.c	Sat Jun 16 23:47:59 2018	(r335268)
+++ head/tools/tools/netrate/http/http.c	Sat Jun 16 23:49:22 2018	(r335269)
@@ -160,7 +160,7 @@ killall(void)
 }
 
 static void
-signal_handler(int signum)
+signal_handler(int signum __unused)
 {
 
 	statep->hwd[curthread].hwd_start_signal_barrier = 1;
@@ -232,7 +232,7 @@ usage(void)
 }
 
 static void
-main_sighup(int signum)
+main_sighup(int signum __unused)
 {
 
 	killall();
@@ -242,7 +242,7 @@ int
 main(int argc, char *argv[])
 {
 	int ch, error, i;
-	char *pagebuffer;
+	struct state *pagebuffer;
 	uintmax_t total;
 	size_t len;
 	pid_t pid;
@@ -283,7 +283,7 @@ main(int argc, char *argv[])
 		err(-1, "mmap");
 	if (minherit(pagebuffer, len, INHERIT_SHARE) < 0)
 		err(-1, "minherit");
-	statep = (struct state *)pagebuffer;
+	statep = pagebuffer;
 
 	bzero(&statep->sin, sizeof(statep->sin));
 	statep->sin.sin_len = sizeof(statep->sin);



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