]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Quiet some warnings
authorHarlan Stenn <stenn@ntp.org>
Thu, 24 Apr 2003 02:40:09 +0000 (22:40 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 24 Apr 2003 02:40:09 +0000 (22:40 -0400)
bk: 3ea74e89hOnQXmV_-qgKBU_30KdZWg

libntp/mktime.c
ntpd/ntp_io.c

index 8181e864aed564294dbbb01f025b630ed4d637be..7f8290f3c3ed99eb2a844524cad40a51e4f6ecca 100644 (file)
@@ -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 },
index e3c5b316fce79bde86d023205d0336b06d759921..c9cb51fe07a8807a86c0710f665a5f3de0e57fd2 100644 (file)
@@ -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
        }