]> granicus.if.org Git - sudo/commitdiff
ansi-fied !STDC_HEADER function prottypes
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Aug 1994 04:41:20 +0000 (04:41 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Aug 1994 04:41:20 +0000 (04:41 +0000)
find_path.c
getcwd.c
getwd.c
putenv.c
strdup.c
sudo.c
sudo_realpath.c
sudo_setenv.c

index bde5578e28aad16eee3dae40e42db1cd7a7da215..9b3a9cee727f9884a25e60afd471f66f76c2f112 100644 (file)
@@ -56,15 +56,15 @@ static char rcsid[] = "$Id$";
 #include "sudo.h"
 
 #ifndef STDC_HEADERS
-extern char *malloc    __P((unsigned));
-extern char *getenv    __P((char *));
-extern char *strcpy    __P((char *, char *));
+extern char *malloc    __P((size_t));
+extern char *getenv    __P((const char *));
+extern char *strcpy    __P((char *, const 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 *));
+extern int readlink    __P((const char *, char *, size_t));
+extern int stat                __P((const char *, struct stat *));
+extern int lstat       __P((const char *, struct stat *));
 #ifdef HAVE_STRDUP
-extern char *strdup    __P((char *));
+extern char *strdup    __P((const char *));
 #endif /* HAVE_STRDUP */
 #endif /* !STDC_HEADERS */
 
index b56c06f37c4f52821346198e1322de36ca2aa654..bcff9c24db9746ef5e21ea6099d680442a3f279d 100644 (file)
--- a/getcwd.c
+++ b/getcwd.c
@@ -55,11 +55,11 @@ static char rcsid[] = "$Id$";
 #include <sys/param.h>
 
 #ifndef STDC_HEADERS
-extern char *strcpy    __P((char *, char *));
-extern int   strlen    __P((char *));
+extern char *strcpy    __P((char *, const char *));
+extern int   strlen    __P((const char *));
 extern char *getwd     __P((char *));
-extern char *malloc    __P((unsigned));
-extern FILE *popen     __P((char *, char *));
+extern char *malloc    __P((size_t));
+extern FILE *popen     __P((const char *, const 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 b56c06f37c4f52821346198e1322de36ca2aa654..bcff9c24db9746ef5e21ea6099d680442a3f279d 100644 (file)
--- a/getwd.c
+++ b/getwd.c
@@ -55,11 +55,11 @@ static char rcsid[] = "$Id$";
 #include <sys/param.h>
 
 #ifndef STDC_HEADERS
-extern char *strcpy    __P((char *, char *));
-extern int   strlen    __P((char *));
+extern char *strcpy    __P((char *, const char *));
+extern int   strlen    __P((const char *));
 extern char *getwd     __P((char *));
-extern char *malloc    __P((unsigned));
-extern FILE *popen     __P((char *, char *));
+extern char *malloc    __P((size_t));
+extern FILE *popen     __P((const char *, const char *));
 extern int   pclose    __P((FILE *));
 extern char *fgets     __P((char *, int, FILE *));
 #endif /* !STDC_HEADERS */
index 3136e2f3fc4b23a1f5ff19cd25e45dace1097b31..8d18e02171f3654c7bfec4d33979f58e094cd008 100644 (file)
--- a/putenv.c
+++ b/putenv.c
@@ -47,7 +47,7 @@ static char rcsid[] = "$Id$";
 #include <sys/param.h>
 
 #ifndef STDC_HEADERS
-extern char *malloc    __P((unsigned));
+extern char *malloc    __P((size_t));
 #endif /* !STDC_HEADERS */
 
 
index 395f064c1dd6a43a9b51dccb9196ae84c0e5a8e6..c02e44fa8a88f16d23f604cb6e01910a2a230afb 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    __P((unsigned));
-extern char *strcpy    __P((char *, char *));
+extern char *malloc    __P((size_t));
+extern char *strcpy    __P((char *, const char *));
 #endif /* !STDC_HEADERS */
 
 
diff --git a/sudo.c b/sudo.c
index 5bfc749a06e4dfed34f6eb6715b84cd9a5335dde..14b825f20d71b79fe71f8412b58c45d8700dc51f 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    __P((unsigned));
+extern char *malloc    __P((size_t));
 #ifdef HAVE_STRDUP
-extern char *strdup    __P((char *));
+extern char *strdup    __P((const char *));
 #endif /* HAVE_STRDUP */
 #endif /* STDC_HEADERS */
 
index 9666c92e609a6346b76f037b8fcffb58ebdc3b94..f53c03ebace5746203e2531f37efa075c81aeb37 100644 (file)
@@ -53,9 +53,9 @@ static char rcsid[] = "$Id$";
 #include "sudo.h"
 
 #ifndef STDC_HEADERS
-extern char *strcpy    __P((char *, char *));
-extern int readlink    __P((char *, char *, int));
-extern int lstat       __P((char *, struct stat *));
+extern char *strcpy    __P((char *, const char *));
+extern int readlink    __P((const char *, char *, size_t));
+extern int lstat       __P((const char *, struct stat *));
 #endif /* !STDC_HEADERS */
 
 
index 17087a801b2976b638eb747b02e52dbb7834ecbe..a046be1373a40ab4fd502a576a1d2235234664f1 100644 (file)
@@ -44,10 +44,10 @@ static char rcsid[] = "$Id$";
 
 #ifndef STDC_HEADERS
 #ifdef HAVE_PUTENV
-extern int putenv();
+extern int putenv      __P((const char *));
 #endif /* HAVE_PUTENV */
 #ifdef HAVE_SETENV
-extern int setenv();
+extern int setenv      __P((char *, char *, int));
 #endif /* HAVE_SETENV */
 #endif /* !STDC_HEADERS */