+1999-08-26 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * libntp/iosignal.c:
+ * ntpd/ntp_peer.c:
+ * ntpd/refclock_nmea.c:
+ * ntpdate/ntptime_config.c:
+ * ntpdate/ntptimeset.c:
+ AIX, Irix, and SunOS lint cleanup
+ From: Marc.Brett@westgeo.com
+
1999-08-24 Harlan Stenn <stenn@whimsy.udel.edu>
* configure.in 4.0.97a
# endif /* HAVE_SIGACTION */
#else
-static int NotAnEmptyCompilationUnit;
+int NotAnEmptyCompilationUnit;
#endif
*/
u_long peer_timereset; /* time stat counters were zeroed */
u_long findpeer_calls; /* number of calls to findpeer */
-static u_long assocpeer_calls; /* number of calls to findpeerbyassoc */
+u_long assocpeer_calls; /* number of calls to findpeerbyassoc */
u_long peer_allocations; /* number of allocations from the free list */
u_long peer_demobilizations; /* number of structs freed to free list */
int total_peer_structs; /* number of peer structs in circulation */
#include <stdio.h>
#include <ctype.h>
#include <sys/time.h>
+#include <time.h>
#include "ntpd.h"
#include "ntp_io.h"
int peerversion;
int minpoll;
int maxpoll;
- int ttl;
+ /* int ttl; */
int srvcnt;
- u_long peerkey;
+ /* u_long peerkey; */
int peerflags;
struct sockaddr_in peeraddr;
FILE *fp;
peerversion = NTP_VERSION;
minpoll = NTP_MINDPOLL;
maxpoll = NTP_MAXDPOLL;
- peerkey = 0;
+ /* peerkey = 0; */
peerflags = 0;
- ttl = 0;
+ /* ttl = 0; */
for (i = 2; i < ntokens; i++)
switch (matchkey(tokens[i], mod_keywords)) {
case CONF_MOD_VERSION:
errflg = 1;
break;
}
- peerkey = (int)atol(tokens[++i]);
+ ++i;
+ /* peerkey = (int)atol(tokens[i]); */
peerflags |= FLAG_AUTHENABLE;
break;
errflg = 1;
break;
}
- ttl = atoi(tokens[++i]);
+ ++i;
+ /* ttl = atoi(tokens[i]); */
break;
case CONF_MOD_MODE:
errflg = 1;
break;
}
- ttl = atoi(tokens[++i]);
+ ++i;
+ /* ttl = atoi(tokens[i]); */
break;
case CONFIG_UNKNOWN:
case CONFIG_KEYS:
if (ntokens >= 2) {
- key_file = emalloc(strlen(tokens[1]) + 1);
+ key_file = (char *) emalloc(strlen(tokens[1]) + 1);
strcpy(key_file, tokens[1]);
}
break;
int vsprintf P((char *str, const char *fmt, va_list ap));
#endif
+#ifdef HAVE_SIGNALED_IO
+extern void wait_for_signal P((void));
+extern void unblock_io_and_alarm P((void));
+extern void block_io_and_alarm P((void));
+#endif
+
#ifdef NO_MAIN_ALLOWED
CALL(ntptimeset,"ntptimeset",ntptimesetmain);
/*
* if we get here then we are in trouble
*/
- exit(1);
+ return(1);
}
register struct recvbuf *rb;
struct timeval tvzero;
int fromlen;
- l_fp ts = *xts; /* we ignore xts, but make the compiler happy */
fd_set fds;
+ l_fp ts;
+ ts = *xts; /* we ignore xts, but make the compiler happy */
/*
* Do a poll to see if we have data