added params to func decls when STDC_HEADERS is not defined

This commit is contained in:
Todd C. Miller
1994-08-08 04:06:48 +00:00
parent a3bbe79d68
commit 38b6d5f1df
5 changed files with 27 additions and 18 deletions

5
sudo.c
View File

@@ -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;