From: Harlan Stenn Date: Thu, 24 Apr 2003 02:40:09 +0000 (-0400) Subject: Quiet some warnings X-Git-Tag: NTP_4_1_80_RC1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ca555cc2cd53a6c17726e07a2decba6fcb3f59a;p=thirdparty%2Fntp.git Quiet some warnings bk: 3ea74e89hOnQXmV_-qgKBU_30KdZWg --- diff --git a/libntp/mktime.c b/libntp/mktime.c index 8181e864a..7f8290f3c 100644 --- a/libntp/mktime.c +++ b/libntp/mktime.c @@ -84,7 +84,7 @@ #define TM_YEAR_BASE 1900 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) -extern time_t time(); +extern time_t time P((time_t *)); static int mon_lengths[2][MONSPERYEAR] = { { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index e3c5b316f..c9cb51fe0 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -514,14 +514,14 @@ io_setbclient(void) if (inter_list[i].bfd != INVALID_SOCKET) inter_list[i].flags |= INT_BCASTOPEN; #ifdef DEBUG - if (debug) + if (debug) { if (inter_list[i].bfd != INVALID_SOCKET) printf("io_setbclient: Opened broadcast client on interface %d, socket: %d\n", i, inter_list[i].bfd); else printf("io_setbclient: Unable to Open broadcast client on interface %d\n", i); - + } #endif #endif }