]> granicus.if.org Git - sudo/commitdiff
added params to func decls when STDC_HEADERS is not defined
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Aug 1994 04:06:48 +0000 (04:06 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Aug 1994 04:06:48 +0000 (04:06 +0000)
find_path.c
getcwd.c
getwd.c
strdup.c
sudo.c

index 80836e5b33b75c211422efdaf9d236493973a238..bde5578e28aad16eee3dae40e42db1cd7a7da215 100644 (file)
@@ -56,15 +56,15 @@ static char rcsid[] = "$Id$";
 #include "sudo.h"
 
 #ifndef STDC_HEADERS
-extern char *malloc();
-extern char *getenv();
-extern char *strcpy();
-extern int fprintf();
-extern int readlink();
-extern int stat();
-extern int lstat();
+extern char *malloc    __P((unsigned));
+extern char *getenv    __P((char *));
+extern char *strcpy    __P((char *, char *));
+extern int fprintf     __P((FILE *, const char *, ...));
+extern int readlink    __P((char *, char *, int));
+extern int stat                __P((char *, struct stat *));
+extern int lstat       __P((char *, struct stat *));
 #ifdef HAVE_STRDUP
-extern char *strdup();
+extern char *strdup    __P((char *));
 #endif /* HAVE_STRDUP */
 #endif /* !STDC_HEADERS */
 
index 3b36c82cfd82ef798801d9021e6210deab92517c..50eb311a2257a6d848e359080b78bbdcd93fb0e6 100644 (file)
--- a/getcwd.c
+++ b/getcwd.c
@@ -55,9 +55,13 @@ static char rcsid[] = "$Id$";
 #include <sys/param.h>
 
 #ifndef STDC_HEADERS
-extern char *strcpy();
-extern int readlink();
-extern int lstat();
+extern char *strcpy    __P((char *, char *));
+extern int   strlen    __P((char *));
+extern char *getwd     __P((char *));
+extern char *malloc    __P((unsigned));
+extern FILE *popen     __P((char *, char *);
+extern int   pclose    __P((FILE *));
+extern char *fgets     __P((char *, int, FILE *));
 #endif /* !STDC_HEADERS */
 
 
diff --git a/getwd.c b/getwd.c
index 3b36c82cfd82ef798801d9021e6210deab92517c..50eb311a2257a6d848e359080b78bbdcd93fb0e6 100644 (file)
--- a/getwd.c
+++ b/getwd.c
@@ -55,9 +55,13 @@ static char rcsid[] = "$Id$";
 #include <sys/param.h>
 
 #ifndef STDC_HEADERS
-extern char *strcpy();
-extern int readlink();
-extern int lstat();
+extern char *strcpy    __P((char *, char *));
+extern int   strlen    __P((char *));
+extern char *getwd     __P((char *));
+extern char *malloc    __P((unsigned));
+extern FILE *popen     __P((char *, char *);
+extern int   pclose    __P((FILE *));
+extern char *fgets     __P((char *, int, FILE *));
 #endif /* !STDC_HEADERS */
 
 
index b7376bec088ec3a7c72bf9cd2219009572e3fd22..395f064c1dd6a43a9b51dccb9196ae84c0e5a8e6 100644 (file)
--- a/strdup.c
+++ b/strdup.c
@@ -53,8 +53,8 @@ static char rcsid[] = "$Id$";
 #endif /* HAVE_MALLOC_H */
 
 #ifndef STDC_HEADERS
-extern char *malloc();
-extern char *strcpy();
+extern char *malloc    __P((unsigned));
+extern char *strcpy    __P((char *, char *));
 #endif /* !STDC_HEADERS */
 
 
diff --git a/sudo.c b/sudo.c
index 06b9eeaa9bd293e2058efac6383cc1798e794160..5bfc749a06e4dfed34f6eb6715b84cd9a5335dde 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -85,9 +85,9 @@ static char rcsid[] = "$Id$";
 #include "version.h"
 
 #ifndef STDC_HEADERS
-extern char *malloc();
+extern char *malloc    __P((unsigned));
 #ifdef HAVE_STRDUP
-extern char *strdup();
+extern char *strdup    __P((char *));
 #endif /* HAVE_STRDUP */
 #endif /* STDC_HEADERS */
 
@@ -129,6 +129,7 @@ main(argc, argv)
 {
     int rtn;
     int sudo_mode = MODE_RUN;
+    extern char ** environ;
 
     Argv = argv;
     Argc = argc;