diff options
author | Kevin Dalley <kevin@seti.org> | 1998-09-21 02:09:00 +0000 |
---|---|---|
committer | Kevin Dalley <kevin@seti.org> | 1998-09-21 02:09:00 +0000 |
commit | d98500c649ec34bf3dff55174b6b772d7b6e429f (patch) | |
tree | 5073a2395cb1ae1c9b4d24d15d2cfbef3e76038b | |
parent | 177b8d6f9009680163d5cb324b04ddf4293609c3 (diff) | |
download | findutils-d98500c649ec34bf3dff55174b6b772d7b6e429f.tar.gz |
* removed more function declarations to meet GNU coding standards
-rw-r--r-- | find/find.c | 3 | ||||
-rw-r--r-- | find/parser.c | 22 | ||||
-rw-r--r-- | find/pred.c | 8 | ||||
-rw-r--r-- | lib/dirname.c | 2 | ||||
-rw-r--r-- | lib/getline.c | 2 | ||||
-rw-r--r-- | lib/getopt1.c | 2 | ||||
-rw-r--r-- | lib/idcache.c | 6 | ||||
-rw-r--r-- | lib/listfile.c | 4 | ||||
-rw-r--r-- | lib/modechange.c | 2 | ||||
-rw-r--r-- | lib/regex.c | 3 | ||||
-rw-r--r-- | lib/savedir.c | 3 | ||||
-rw-r--r-- | lib/strdup.c | 3 | ||||
-rw-r--r-- | lib/xgetcwd.c | 1 | ||||
-rw-r--r-- | lib/xmalloc.c | 4 | ||||
-rw-r--r-- | locate/locate.c | 2 | ||||
-rw-r--r-- | xargs/xargs.c | 5 |
16 files changed, 0 insertions, 72 deletions
diff --git a/find/find.c b/find/find.c index 361f2c41..d71f13a5 100644 --- a/find/find.c +++ b/find/find.c @@ -38,9 +38,6 @@ #define lstat stat #endif -int lstat (); -int stat (); - #define apply_predicate(pathname, stat_buf_ptr, node) \ (*(node)->pred_func)((pathname), (stat_buf_ptr), (node)) diff --git a/find/parser.c b/find/parser.c index 42d9a8cb..6aca0833 100644 --- a/find/parser.c +++ b/find/parser.c @@ -36,35 +36,13 @@ #define ISDIGIT(c) (isascii (c) && isdigit (c)) #define ISUPPER(c) (isascii (c) && isupper (c)) -#ifndef _POSIX_VERSION -/* POSIX.1 header files should declare these. */ -struct group *getgrnam (); -struct passwd *getpwnam (); -#endif - -#ifdef CACHE_IDS -/* These two aren't specified by POSIX.1. */ -struct group *getgrent (); -struct passwd *getpwent (); -#endif - #ifndef S_IFLNK #define lstat stat #endif -int lstat (); -int stat (); -#ifndef atol /* for Linux */ -long atol (); -#endif -struct tm *localtime (); - #ifdef _POSIX_SOURCE #define endgrent() #define endpwent() -#else -void endgrent (); -void endpwent (); #endif static boolean parse_amin P_((char *argv[], int *arg_ptr)); diff --git a/find/pred.c b/find/pred.c index dee06dcf..e7e472cc 100644 --- a/find/pred.c +++ b/find/pred.c @@ -32,11 +32,6 @@ #define SIGCHLD SIGCLD #endif -#ifndef _POSIX_VERSION -struct passwd *getpwuid (); -struct group *getgrgid (); -#endif - #if HAVE_DIRENT_H # include <dirent.h> # define NAMLEN(dirent) strlen((dirent)->d_name) @@ -84,9 +79,6 @@ struct group *getgrgid (); # endif #endif -int lstat (); -int stat (); - static boolean insert_lname P_((char *pathname, struct stat *stat_buf, struct predicate *pred_ptr, boolean ignore_case)); static boolean launch P_((struct predicate *pred_ptr)); static char *format_date P_((time_t when, int kind)); diff --git a/lib/dirname.c b/lib/dirname.c index 15d25967..bfd10bca 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -21,8 +21,6 @@ #ifdef STDC_HEADERS #include <stdlib.h> -#else -char *malloc (); #endif #if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include <string.h> diff --git a/lib/getline.c b/lib/getline.c index 2b3cf035..d2273185 100644 --- a/lib/getline.c +++ b/lib/getline.c @@ -29,8 +29,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #if STDC_HEADERS #include <stdlib.h> -#else -char *malloc (), *realloc (); #endif /* Always add at least this many bytes when extending the buffer. */ diff --git a/lib/getopt1.c b/lib/getopt1.c index 4580211c..c3a9b83b 100644 --- a/lib/getopt1.c +++ b/lib/getopt1.c @@ -47,8 +47,6 @@ to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include <stdlib.h> -#else -char *getenv (); #endif #ifndef NULL diff --git a/lib/idcache.c b/lib/idcache.c index 34dcc07c..cce37e57 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -33,12 +33,6 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#ifndef _POSIX_VERSION -struct passwd *getpwuid (); -struct passwd *getpwnam (); -struct group *getgrgid (); -struct group *getgrnam (); -#endif char *xmalloc (); char *xstrdup (); diff --git a/lib/listfile.c b/lib/listfile.c index 7e32079f..08cad9c6 100644 --- a/lib/listfile.c +++ b/lib/listfile.c @@ -36,7 +36,6 @@ #ifdef STDC_HEADERS #include <stdlib.h> #else -char *getenv (); extern int errno; #endif @@ -66,9 +65,6 @@ extern int errno; #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) #endif -#if defined(S_ISLNK) -int readlink (); -#endif /* Extract or fake data from a `struct stat'. ST_NBLOCKS: Number of 512-byte blocks in the file diff --git a/lib/modechange.c b/lib/modechange.c index 3862599e..321dbe56 100644 --- a/lib/modechange.c +++ b/lib/modechange.c @@ -34,8 +34,6 @@ #ifdef STDC_HEADERS #include <stdlib.h> -#else -char *malloc (); #endif #ifndef NULL diff --git a/lib/regex.c b/lib/regex.c index 33c7ea24..04dc709e 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -48,9 +48,6 @@ #ifdef STDC_HEADERS #include <stdlib.h> -#else -char *malloc (); -char *realloc (); #endif diff --git a/lib/savedir.c b/lib/savedir.c index 1992cf55..b1121161 100644 --- a/lib/savedir.c +++ b/lib/savedir.c @@ -54,9 +54,6 @@ #ifdef STDC_HEADERS #include <stdlib.h> #include <string.h> -#else -char *malloc (); -char *realloc (); #endif #ifndef NULL #define NULL 0 diff --git a/lib/strdup.c b/lib/strdup.c index 1d60f139..c4c09134 100644 --- a/lib/strdup.c +++ b/lib/strdup.c @@ -22,9 +22,6 @@ #ifdef STDC_HEADERS #include <string.h> #include <stdlib.h> -#else -char *malloc (); -char *strcpy (); #endif /* Return a newly allocated copy of STR, diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c index 1c1a7bd7..28c19cae 100644 --- a/lib/xgetcwd.c +++ b/lib/xgetcwd.c @@ -30,7 +30,6 @@ extern int errno; #include "pathmax.h" #ifndef HAVE_GETCWD -char *getwd (); #define getcwd(buf, max) getwd (buf) #else char *getcwd (); diff --git a/lib/xmalloc.c b/lib/xmalloc.c index 9f701111..006eb367 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -29,10 +29,6 @@ #if STDC_HEADERS #include <stdlib.h> -#else -VOID *malloc (); -VOID *realloc (); -void free (); #endif #ifndef EXIT_FAILURE diff --git a/locate/locate.c b/locate/locate.c index f7dc5214..ec2de906 100644 --- a/locate/locate.c +++ b/locate/locate.c @@ -67,8 +67,6 @@ #ifdef STDC_HEADERS #include <stdlib.h> -#else -char *getenv (); #endif #ifdef STDC_HEADERS diff --git a/xargs/xargs.c b/xargs/xargs.c index ce814153..82bfb5bd 100644 --- a/xargs/xargs.c +++ b/xargs/xargs.c @@ -98,11 +98,6 @@ #ifdef STDC_HEADERS #include <stdlib.h> #else -char *malloc (); -void exit (); -void free (); -long strtol (); - extern int errno; #endif |