From: Dave Hart Date: Thu, 14 Oct 2010 09:38:42 +0000 (+0000) Subject: ntpsnmpd, libntpq warning cleanup. X-Git-Tag: NTP_4_2_6P3_RC4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=779c4ef70666c4da4a56642f48e3bb1da8a55084;p=thirdparty%2Fntp.git ntpsnmpd, libntpq warning cleanup. bk: 4cb6cfa2VPGM8ug6QELBb25_XI5E4g --- diff --git a/ChangeLog b/ChangeLog index 41c8f7127..e62ae134b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +--- + +* ntpsnmpd, libntpq warning cleanup. + --- (4.2.6p3-RC3) 2010/10/14 Released by Harlan Stenn @@ -5,7 +9,7 @@ * [Bug 1080] ntpd on ipv6 routers very chatty. * [Bug 1567] Support Arbiter 1093C Satellite Clock on Windows. * [Bug 1581] printf format string mismatch leftover. -* [Bug 1584]: ntpsnmpd OID must be mib-2.197. +* [Bug 1584] ntpsnmpd OID must be mib-2.197. * [Bug 1643] Range-check the decoding of the RIPE-NCC status codes. * [Bug 1644] cvo.sh should use lsb_release to identify linux distros. * [Bug 1659] Support Truetime Satellite Clocks on Windows. diff --git a/ntpq/libntpq.c b/ntpq/libntpq.c index e33f304ac..c0a5c7c14 100644 --- a/ntpq/libntpq.c +++ b/ntpq/libntpq.c @@ -496,7 +496,7 @@ ntpq_read_sysvars( if (res != 0) return 0; - if (dsize == 0) { + if (i_dsize == 0) { if (numhosts > 1) fprintf(stderr, "server=%s ", currenthost); fprintf(stderr, "***No sysvar information returned\n"); diff --git a/ntpsnmpd/ntpsnmpd.c b/ntpsnmpd/ntpsnmpd.c index 0a98a3b2b..278d5a86e 100644 --- a/ntpsnmpd/ntpsnmpd.c +++ b/ntpsnmpd/ntpsnmpd.c @@ -32,6 +32,7 @@ #include static int keep_running; +RETSIGTYPE stop_server(int); RETSIGTYPE stop_server(int a) { @@ -46,8 +47,6 @@ int main (int argc, char **argv) { int background = 0; /* start as background process */ int use_syslog = 1; /* use syslog for logging */ - char varvalue[1024]; - { int optct = optionProcess(&ntpsnmpdOptions, argc, argv);