]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Quiet GCC warnings. From Peter Breitenlohner <peb@mppmu.mpg.de>
authorHarlan Stenn <stenn@ntp.org>
Thu, 3 Oct 2002 07:40:37 +0000 (03:40 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 3 Oct 2002 07:40:37 +0000 (03:40 -0400)
bk: 3d9bf475M7Kkhn_NlvpQnaaN-kYy1g

include/l_stdlib.h
include/ntp_syscall.h
parseutil/dcfd.c

index ca47af86e1f9b381b86f71129332ce5a0bf26252..89eb54535e3a1a6f4789e668e46b8e64b698cff7 100644 (file)
@@ -235,7 +235,7 @@ extern      int     toupper         P((int));
 extern int     errno;
 #endif
 
-#ifdef DECL_H_ERRNO
+#if defined(DECL_H_ERRNO) && !defined(h_errno)
 extern int     h_errno;
 #endif
 
index 29dff91190da8257cc40d37c009ae8098a38cfe2..521e753f67919ad3db40b1839c9a1dbe28dea0e0 100644 (file)
@@ -14,6 +14,7 @@
 # include <sys/timex.h>
 #endif
 
+#ifndef NTP_SYSCALLS_LIBC
 #ifdef NTP_SYSCALLS_STD
 # define ntp_adjtime(t)                syscall(SYS_ntp_adjtime, (t))
 # define ntp_gettime(t)                syscall(SYS_ntp_gettime, (t))
@@ -49,5 +50,6 @@ ntp_gettime(
 #  endif
 # endif /* !HAVE_ADJTIMEX */
 #endif /* !NTP_SYSCALLS_STD */
+#endif /* !NTP_SYSCALLS_LIBC */
 
 #endif /* NTP_SYSCALL_H */
index 7d223de3cbbdce29cfba033e40206abcc558c5ad..0ee465de05969b0093f1b6a31b00771f32bf1cfa 100644 (file)
 #define dprintf(_x_)
 #endif
 
+#ifdef DECL_ERRNO
      extern int errno;
+#endif
 
 /*
  * display received data (avoids also detaching from tty)
@@ -728,7 +730,7 @@ cvt_rawdcf(
  * convert a wall clock time description of DCF77 to a Unix time (seconds
  * since 1.1. 1970 UTC)
  */
-time_t
+static time_t
 dcf_to_unixtime(
                clocktime_t   *clock_time,
                unsigned *cvtrtc
@@ -1083,7 +1085,7 @@ periodic_adjust(
  */
 static void
 tick(
-     void
+     int signum
      )
 {
        static unsigned long last_notice = 0;
@@ -1217,7 +1219,7 @@ usage(
  * check_y2k() - internal check of Y2K logic
  *     (a lot of this logic lifted from ../ntpd/check_y2k.c)
  */
-int
+static int
 check_y2k( void )
 { 
     int  year;                 /* current working year */