netrate: build with WARNS=6
Tested with amd64, i386
This commit is contained in:
parent
1d5c880507
commit
eb49fcf599
@ -2,7 +2,6 @@
|
||||
|
||||
PROG= http
|
||||
MAN=
|
||||
WARNS?= 3
|
||||
LIBADD= pthread
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user