From owner-svn-src-head@freebsd.org Sat Jun 16 23:49:24 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB21710027C0; Sat, 16 Jun 2018 23:49:23 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B91A74501; Sat, 16 Jun 2018 23:49:23 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7B69057BE; Sat, 16 Jun 2018 23:49:23 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5GNnNBU081610; Sat, 16 Jun 2018 23:49:23 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5GNnNOJ081609; Sat, 16 Jun 2018 23:49:23 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201806162349.w5GNnNOJ081609@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Sat, 16 Jun 2018 23:49:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335269 - head/tools/tools/netrate/http X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/tools/tools/netrate/http X-SVN-Commit-Revision: 335269 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2018 23:49:24 -0000 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 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);