remove unused variables

This commit is contained in:
christos 2013-12-30 01:34:22 +00:00
parent 178126fa8a
commit 4c05c4493f
3 changed files with 3 additions and 13 deletions

View File

@ -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 /* ntp_config.c
* *
@ -2595,9 +2595,7 @@ config_rlimit(
) )
{ {
attr_val * rlimit_av; attr_val * rlimit_av;
int item;
item = -1; /* quiet warning */
rlimit_av = HEAD_PFIFO(ptree->rlimit); rlimit_av = HEAD_PFIFO(ptree->rlimit);
for (; rlimit_av != NULL; rlimit_av = rlimit_av->link) { for (; rlimit_av != NULL; rlimit_av = rlimit_av->link) {
switch (rlimit_av->attr) { switch (rlimit_av->attr) {

View File

@ -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. * ntpq-subs.c - subroutines which are called to perform ntpq commands.
@ -3174,7 +3174,6 @@ ifstats(
char * tag; char * tag;
char * val; char * val;
int fields; int fields;
u_int ifnum;
u_int ui; u_int ui;
ifstats_row row; ifstats_row row;
int comprende; int comprende;
@ -3193,7 +3192,6 @@ ifstats(
ZERO(row); ZERO(row);
fields = 0; fields = 0;
ifnum = 0;
ui = 0; ui = 0;
while (nextvar(&dsize, &datap, &tag, &val)) { while (nextvar(&dsize, &datap, &tag, &val)) {
if (debug > 1) if (debug > 1)
@ -3391,7 +3389,6 @@ reslist(
char * tag; char * tag;
char * val; char * val;
int fields; int fields;
u_int idx;
u_int ui; u_int ui;
reslist_row row; reslist_row row;
int comprende; int comprende;
@ -3410,7 +3407,6 @@ reslist(
ZERO(row); ZERO(row);
fields = 0; fields = 0;
idx = 0;
ui = 0; ui = 0;
while (nextvar(&dsize, &datap, &tag, &val)) { while (nextvar(&dsize, &datap, &tag, &val)) {
if (debug > 1) if (debug > 1)

View File

@ -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> #include <config.h>
@ -297,9 +297,7 @@ open_sockets(
) )
{ {
sockaddr_u name; sockaddr_u name;
int one_fam_works;
one_fam_works = FALSE;
if (-1 == sock4) { if (-1 == sock4) {
sock4 = socket(PF_INET, SOCK_DGRAM, 0); sock4 = socket(PF_INET, SOCK_DGRAM, 0);
if (-1 == sock4) { if (-1 == sock4) {
@ -330,7 +328,6 @@ open_sockets(
msyslog(LOG_ERR, msyslog(LOG_ERR,
"open_sockets: event_new(base, sock4) failed!"); "open_sockets: event_new(base, sock4) failed!");
} else { } else {
one_fam_works = TRUE;
event_add(ev_sock4, &wakeup_tv); event_add(ev_sock4, &wakeup_tv);
} }
} }
@ -365,7 +362,6 @@ open_sockets(
msyslog(LOG_ERR, msyslog(LOG_ERR,
"open_sockets: event_new(base, sock6) failed!"); "open_sockets: event_new(base, sock6) failed!");
} else { } else {
one_fam_works = TRUE;
event_add(ev_sock6, &wakeup_tv); event_add(ev_sock6, &wakeup_tv);
} }
} }