https://bugs.gentoo.org/944988 https://944988.bugs.gentoo.org/attachment.cgi?id=957836 --- uucp-1.07/time.c +++ uucp-1.07/time.c @@ -39,14 +39,6 @@ #include "uudefs.h" #include "uuconf.h" -/* External functions. */ -#ifndef time -extern time_t time (); -#endif -#ifndef localtime -extern struct tm *localtime (); -#endif - /* See if the current time matches a time span. If it does, return TRUE, set *pival to the value for the matching span, and set *pcretry to the retry for the matching span. Otherwise return --- uucp-1.07/unix/filnam.c +++ uucp-1.07/unix/filnam.c @@ -73,9 +73,6 @@ #endif /* External functions. */ -#ifndef lseek -extern off_t lseek (); -#endif #define ZCHARS \ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" --- uucp-1.07/unix/fsusg.c +++ uucp-1.07/unix/fsusg.c @@ -23,8 +23,6 @@ #include "sysdep.h" #include "fsusg.h" -int statfs (); - #if HAVE_SYS_PARAM_H #include #endif @@ -53,10 +51,7 @@ #include #endif -#if HAVE_SYS_STATVFS_H /* SVR4. */ #include -int statvfs (); -#endif #if HAVE_USTAT_H /* SVR2 and others. */ #include --- uucp-1.07/unix/lock.c +++ uucp-1.07/unix/lock.c @@ -70,9 +70,6 @@ #define SEEK_SET 0 #endif -#ifndef localtime -extern struct tm *localtime (); -#endif #if HAVE_QNX_LOCKFILES static boolean fsqnx_stale P((unsigned long ipid, unsigned long inme, --- uucp-1.07/unix/loctim.c +++ uucp-1.07/unix/loctim.c @@ -11,10 +11,6 @@ #include "system.h" -#ifndef localtime -extern struct tm *localtime (); -#endif - void usysdep_localtime (itime, q) long itime; --- uucp-1.07/unix/mail.c +++ uucp-1.07/unix/mail.c @@ -34,10 +34,6 @@ #include #endif -#ifndef ctime -extern char *ctime (); -#endif - /* Mail a message to a user. */ boolean --- uucp-1.07/unix/opensr.c +++ uucp-1.07/unix/opensr.c @@ -57,9 +57,6 @@ #define FD_CLOEXEC 1 #endif -#ifndef time -extern time_t time (); -#endif /* Open a file to send to another system, and return the mode and the size. */ --- uucp-1.07/unix/portnm.c +++ uucp-1.07/unix/portnm.c @@ -13,9 +13,7 @@ #include #endif -#ifndef ttyname -extern char *ttyname (); -#endif +#include /* Get the port name of standard input. I assume that Unix systems generally support ttyname. If they don't, this function can just --- uucp-1.07/unix/proctm.c +++ uucp-1.07/unix/proctm.c @@ -70,9 +70,6 @@ and on some systems, such as Ultrix 4.0, clock_t is int. We don't leave it out entirely because on some systems, such as System III, the declaration is necessary for correct compilation. */ -#ifndef times -extern long times (); -#endif #endif /* TIMES_DECLARATION_OK */ #ifdef _SC_CLK_TCK @@ -98,15 +95,6 @@ #endif /* HAVE_TIMES */ -#ifndef time -extern time_t time (); -#endif -#if HAVE_SYSCONF -#ifndef sysconf -extern long sysconf (); -#endif -#endif - /* Get the time in seconds and microseconds; this need only work within the process when called from the system independent code. It is also called by ixsysdep_time. */ --- uucp-1.07/unix/time.c +++ uucp-1.07/unix/time.c @@ -9,10 +9,6 @@ #include "system.h" -#ifndef time -extern time_t time (); -#endif - /* Get the time in seconds since the epoch, with optional microseconds. We use ixsysdep_process_time to get the microseconds if it will work (it won't if it uses times, since that returns a --- uucp-1.07/unix/trunc.c +++ uucp-1.07/unix/trunc.c @@ -25,11 +25,6 @@ #define SEEK_SET 0 #endif -/* External functions. */ -#ifndef lseek -extern off_t lseek (); -#endif - /* Truncate a file to zero length. If this fails, it closes and removes the file. We support a number of different means of truncation, which is probably a waste of time since this function --- uucp-1.07/unix/wldcrd.c +++ uucp-1.07/unix/wldcrd.c @@ -64,7 +64,7 @@ ulog (LOG_FATAL, "fsysdep_wildcard: %s: Can't happen", zfile); #endif - if (glob (zfile, 0, (int (*) ()) NULL, &sSglob) != 0) + if (glob (zfile, 0, (int (*) (const char*, int)) NULL, &sSglob) != 0) sSglob.gl_pathc = 0; iSglob = 0; return TRUE; --- uucp-1.07/uuconf/cmdarg.c +++ uucp-1.07/uuconf/cmdarg.c @@ -34,7 +34,7 @@ #if HAVE_STRCASECMP #undef strcasecmp #endif -extern int strcmp (), strcasecmp (); + /* Look up a command with arguments in a table and execute it. */