]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Many files:
authorHarlan Stenn <stenn@ntp.org>
Sat, 21 Apr 2001 06:34:51 +0000 (06:34 -0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 21 Apr 2001 06:34:51 +0000 (06:34 -0000)
  * util/ntp-genkeys.c: config_file should be declared, not defined.
  * ntpd/refclock_mx4200.c (mx4200_pps): debug cleanup.
  * ntpd/refclock_hopfser.c: If we're not using it, provide the _bs.
  * ntpd/refclock_heath.c (heath_receive): Add missing "break"
  statements.
  * ntpd/ntp_proto.c: Lose extra definition of mode_ntpdate.
  * librsaref/Makefile.am (nodist_librsaref_a_SOURCES): Put RSASRCS
  on the same line as rsaref.h to improve portability.
  * libntp/msyslog.c: Lint cleanup.
  From: Marc.Brett@westerngeco.com

bk: 3ae12a0bdgQkMzGNbaFu_3XJaYoWeQ

ChangeLog
libntp/msyslog.c
librsaref/Makefile.am
librsaref/Makefile.in
ntpd/ntp_proto.c
ntpd/refclock_heath.c
ntpd/refclock_hopfser.c
ntpd/refclock_mx4200.c
util/ntp-genkeys.c

index 0b66e2cb55071bd1f9ed1fe50b5a0abfec40c7d5..c6cb53d4bd9482669f0f19190db0a32026f48fb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2001-04-21  Harlan Stenn  <stenn@whimsy.udel.edu>
 
+       * util/ntp-genkeys.c: config_file should be declared, not defined.
+       * ntpd/refclock_mx4200.c (mx4200_pps): debug cleanup.
+       * ntpd/refclock_hopfser.c: If we're not using it, provide the _bs.
+       * ntpd/refclock_heath.c (heath_receive): Add missing "break"
+       statements.
+       * ntpd/ntp_proto.c: Lose extra definition of mode_ntpdate.
+       * librsaref/Makefile.am (nodist_librsaref_a_SOURCES): Put RSASRCS
+       on the same line as rsaref.h to improve portability.
+       * libntp/msyslog.c: Lint cleanup.
+       From: Marc.Brett@westerngeco.com
+
        * util/ntp-genkeys.c:
        * ntpdate/ntpdate.c:
        * ntpd/ntp_config.c: Netinfo header reorder.
index 68426cfe50140e5fb2ea004e8ee0e0fd95ab23d5..98648814ae11d239323092fecaf087be8946f67e 100644 (file)
@@ -66,10 +66,6 @@ void msyslog(int level, const char *fmt, ...)
        register int c;
        register char *n, *prog;
        register const char *f;
-#ifdef CHAR_SYS_ERRLIST
-       extern int sys_nerr;
-       extern char *sys_errlist[];
-#endif
        int olderrno;
        char *err;
 
index 301fb2f2456d5951ff44b3582741d14aa4634703..889251ebcb1878b57078369061edea40f30db3e2 100644 (file)
@@ -27,8 +27,7 @@ nodist_librsaref_a_SOURCES = \
        prime.h \
        r_random.h \
        rsa.h \
-       rsaref.h \
-       @RSASRCS@
+       rsaref.h @RSASRCS@
 
 librsaref_a_LIBADD = @RSAOBJS@
 librsaref_a_DEPENDENCIES = $(librsaref_a_LIBADD)
index 0e4c40bf01dbab241d957ee1eb9dd36dd0f34a6a..3faba0222a080053f29a296d2744557f4d05568e 100644 (file)
@@ -145,8 +145,7 @@ nodist_librsaref_a_SOURCES = \
        prime.h \
        r_random.h \
        rsa.h \
-       rsaref.h \
-       @RSASRCS@
+       rsaref.h @RSASRCS@
 
 
 librsaref_a_LIBADD = @RSAOBJS@
index 7a487d2e791b47b0e123a0f662f854a16b6cb341..8ed65c982564ef6e5f23ba7e37c664771ac63ac1 100644 (file)
@@ -54,7 +54,6 @@ static        double sys_syserr;      /* system error (squares) */
 keyid_t        sys_private;            /* private value for session seed */
 int    sys_manycastserver;     /* respond to manycast client pkts */
 u_int sys_survivors;           /* truest of the truechimers */
-int    mode_ntpdate;           /* simulate ntpdate */
 int    peer_ntpdate;           /* active peers in ntpdate mode */
 #ifdef AUTOKEY
 char   *sys_hostname;          /* gethostname() name */
index 38e9f63a5518aceefe404623ac9659dba69abc6a..ef4db5a4d4f867c3ed8e012417780484c0b1e691 100644 (file)
@@ -339,6 +339,7 @@ heath_receive(
                        refclock_report(peer, CEVNT_BADREPLY);
                        return;
                }
+               break;
 
        /*
         * GC-1000 II timecode format: "hh:mm:ss.f   "
@@ -349,6 +350,7 @@ heath_receive(
                        refclock_report(peer, CEVNT_BADREPLY);
                        return;
                }
+               break;
 
        default:
                refclock_report(peer, CEVNT_BADREPLY);
index f09631a28188d5316cf64ed7949f8b2e403d6bbf..a9d74dda1d757b1a22ce3f4330a336c8b72a0d41 100644 (file)
@@ -367,4 +367,6 @@ hopfserial_poll (
        return;
 }
 
+#else
+int refclock_hopfser_bs;
 #endif /* REFCLOCK */
index e0e7618669d6e4cf51907fb937bca4c091c84218..3c520b0b190e93e1277be75bbed6817d1f8264c3 100644 (file)
@@ -1524,8 +1524,8 @@ mx4200_pps(
        if (time_pps_fetch(up->pps_h, PPS_TSFMT_TSPEC, &(up->pps_i),
                        &timeout) < 0) {
                mx4200_debug(peer,
-                 "mx4200_pps: time_pps_fetch: serial=%d, handle=%d, %s\n",
-                    up->pps_i.assert_sequence, up->pps_h, strerror(errno));
+                 "mx4200_pps: time_pps_fetch: serial=%d, %s\n",
+                    up->pps_i.assert_sequence, strerror(errno));
                refclock_report(peer, CEVNT_FAULT);
                return(1);
        }
index 03e8bde75d8788419c9d4897a7cdcc3630921e8a..e896b5e363f174b0e6c01564e3d7696e593dbf86 100644 (file)
  */
 
 
-char *config_file;
+extern char *config_file;
 
 #ifdef HAVE_NETINFO
 struct netinfo_config_state *config_netinfo = NULL;
@@ -736,7 +736,7 @@ main(
 #endif /* PUBKEY */
        struct timeval tv;              /* initialization vector */
        u_long ntptime;                 /* NTP timestamp */
-       u_char hostname[256];           /* DNS host name */
+       char hostname[256];             /* DNS host name */
        u_char md5key[17];              /* generated MD5 key */ 
        FILE *str;                      /* file handle */
        u_int temp;