netrate: build with WARNS=6
Tested with amd64, i386
This commit is contained in:
parent
1d5c880507
commit
eb49fcf599
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
PROG= http
|
PROG= http
|
||||||
MAN=
|
MAN=
|
||||||
WARNS?= 3
|
|
||||||
LIBADD= pthread
|
LIBADD= pthread
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -160,7 +160,7 @@ killall(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
signal_handler(int signum)
|
signal_handler(int signum __unused)
|
||||||
{
|
{
|
||||||
|
|
||||||
statep->hwd[curthread].hwd_start_signal_barrier = 1;
|
statep->hwd[curthread].hwd_start_signal_barrier = 1;
|
||||||
@ -232,7 +232,7 @@ usage(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
main_sighup(int signum)
|
main_sighup(int signum __unused)
|
||||||
{
|
{
|
||||||
|
|
||||||
killall();
|
killall();
|
||||||
@ -242,7 +242,7 @@ int
|
|||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int ch, error, i;
|
int ch, error, i;
|
||||||
char *pagebuffer;
|
struct state *pagebuffer;
|
||||||
uintmax_t total;
|
uintmax_t total;
|
||||||
size_t len;
|
size_t len;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
@ -283,7 +283,7 @@ main(int argc, char *argv[])
|
|||||||
err(-1, "mmap");
|
err(-1, "mmap");
|
||||||
if (minherit(pagebuffer, len, INHERIT_SHARE) < 0)
|
if (minherit(pagebuffer, len, INHERIT_SHARE) < 0)
|
||||||
err(-1, "minherit");
|
err(-1, "minherit");
|
||||||
statep = (struct state *)pagebuffer;
|
statep = pagebuffer;
|
||||||
|
|
||||||
bzero(&statep->sin, sizeof(statep->sin));
|
bzero(&statep->sin, sizeof(statep->sin));
|
||||||
statep->sin.sin_len = sizeof(statep->sin);
|
statep->sin.sin_len = sizeof(statep->sin);
|
||||||
|
Loading…
Reference in New Issue
Block a user