remove unused variables
This commit is contained in:
parent
178126fa8a
commit
4c05c4493f
4
external/bsd/ntp/dist/ntpd/ntp_config.c
vendored
4
external/bsd/ntp/dist/ntpd/ntp_config.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ntp_config.c,v 1.6 2013/12/28 03:20:14 christos Exp $ */
|
||||
/* $NetBSD: ntp_config.c,v 1.7 2013/12/30 01:34:22 christos Exp $ */
|
||||
|
||||
/* ntp_config.c
|
||||
*
|
||||
@ -2595,9 +2595,7 @@ config_rlimit(
|
||||
)
|
||||
{
|
||||
attr_val * rlimit_av;
|
||||
int item;
|
||||
|
||||
item = -1; /* quiet warning */
|
||||
rlimit_av = HEAD_PFIFO(ptree->rlimit);
|
||||
for (; rlimit_av != NULL; rlimit_av = rlimit_av->link) {
|
||||
switch (rlimit_av->attr) {
|
||||
|
6
external/bsd/ntp/dist/ntpq/ntpq-subs.c
vendored
6
external/bsd/ntp/dist/ntpq/ntpq-subs.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ntpq-subs.c,v 1.5 2013/12/28 03:20:14 christos Exp $ */
|
||||
/* $NetBSD: ntpq-subs.c,v 1.6 2013/12/30 01:34:22 christos Exp $ */
|
||||
|
||||
/*
|
||||
* ntpq-subs.c - subroutines which are called to perform ntpq commands.
|
||||
@ -3174,7 +3174,6 @@ ifstats(
|
||||
char * tag;
|
||||
char * val;
|
||||
int fields;
|
||||
u_int ifnum;
|
||||
u_int ui;
|
||||
ifstats_row row;
|
||||
int comprende;
|
||||
@ -3193,7 +3192,6 @@ ifstats(
|
||||
|
||||
ZERO(row);
|
||||
fields = 0;
|
||||
ifnum = 0;
|
||||
ui = 0;
|
||||
while (nextvar(&dsize, &datap, &tag, &val)) {
|
||||
if (debug > 1)
|
||||
@ -3391,7 +3389,6 @@ reslist(
|
||||
char * tag;
|
||||
char * val;
|
||||
int fields;
|
||||
u_int idx;
|
||||
u_int ui;
|
||||
reslist_row row;
|
||||
int comprende;
|
||||
@ -3410,7 +3407,6 @@ reslist(
|
||||
|
||||
ZERO(row);
|
||||
fields = 0;
|
||||
idx = 0;
|
||||
ui = 0;
|
||||
while (nextvar(&dsize, &datap, &tag, &val)) {
|
||||
if (debug > 1)
|
||||
|
6
external/bsd/ntp/dist/sntp/main.c
vendored
6
external/bsd/ntp/dist/sntp/main.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.9 2013/12/29 03:26:07 christos Exp $ */
|
||||
/* $NetBSD: main.c,v 1.10 2013/12/30 01:34:23 christos Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -297,9 +297,7 @@ open_sockets(
|
||||
)
|
||||
{
|
||||
sockaddr_u name;
|
||||
int one_fam_works;
|
||||
|
||||
one_fam_works = FALSE;
|
||||
if (-1 == sock4) {
|
||||
sock4 = socket(PF_INET, SOCK_DGRAM, 0);
|
||||
if (-1 == sock4) {
|
||||
@ -330,7 +328,6 @@ open_sockets(
|
||||
msyslog(LOG_ERR,
|
||||
"open_sockets: event_new(base, sock4) failed!");
|
||||
} else {
|
||||
one_fam_works = TRUE;
|
||||
event_add(ev_sock4, &wakeup_tv);
|
||||
}
|
||||
}
|
||||
@ -365,7 +362,6 @@ open_sockets(
|
||||
msyslog(LOG_ERR,
|
||||
"open_sockets: event_new(base, sock6) failed!");
|
||||
} else {
|
||||
one_fam_works = TRUE;
|
||||
event_add(ev_sock6, &wakeup_tv);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user