Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist remove unused variables
details: https://anonhg.NetBSD.org/src/rev/07f1eda1705f
branches: trunk
changeset: 325577:07f1eda1705f
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 30 01:34:22 2013 +0000
description:
remove unused variables
diffstat:
external/bsd/ntp/dist/ntpd/ntp_config.c | 6 ++----
external/bsd/ntp/dist/ntpq/ntpq-subs.c | 6 +-----
external/bsd/ntp/dist/sntp/main.c | 6 +-----
3 files changed, 4 insertions(+), 14 deletions(-)
diffs (96 lines):
diff -r 2ad822202b9b -r 07f1eda1705f external/bsd/ntp/dist/ntpd/ntp_config.c
--- a/external/bsd/ntp/dist/ntpd/ntp_config.c Sun Dec 29 23:26:00 2013 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_config.c Mon Dec 30 01:34:22 2013 +0000
@@ -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 @@
)
{
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) {
diff -r 2ad822202b9b -r 07f1eda1705f external/bsd/ntp/dist/ntpq/ntpq-subs.c
--- a/external/bsd/ntp/dist/ntpq/ntpq-subs.c Sun Dec 29 23:26:00 2013 +0000
+++ b/external/bsd/ntp/dist/ntpq/ntpq-subs.c Mon Dec 30 01:34:22 2013 +0000
@@ -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 @@
char * tag;
char * val;
int fields;
- u_int ifnum;
u_int ui;
ifstats_row row;
int comprende;
@@ -3193,7 +3192,6 @@
ZERO(row);
fields = 0;
- ifnum = 0;
ui = 0;
while (nextvar(&dsize, &datap, &tag, &val)) {
if (debug > 1)
@@ -3391,7 +3389,6 @@
char * tag;
char * val;
int fields;
- u_int idx;
u_int ui;
reslist_row row;
int comprende;
@@ -3410,7 +3407,6 @@
ZERO(row);
fields = 0;
- idx = 0;
ui = 0;
while (nextvar(&dsize, &datap, &tag, &val)) {
if (debug > 1)
diff -r 2ad822202b9b -r 07f1eda1705f external/bsd/ntp/dist/sntp/main.c
--- a/external/bsd/ntp/dist/sntp/main.c Sun Dec 29 23:26:00 2013 +0000
+++ b/external/bsd/ntp/dist/sntp/main.c Mon Dec 30 01:34:22 2013 +0000
@@ -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 @@
)
{
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 @@
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 @@
msyslog(LOG_ERR,
"open_sockets: event_new(base, sock6) failed!");
} else {
- one_fam_works = TRUE;
event_add(ev_sock6, &wakeup_tv);
}
}
Home |
Main Index |
Thread Index |
Old Index