took out errno decl since sudo.h does it for us
fixed up a next cc warning added params to func decls when STDC_HEADERS is not defined
This commit is contained in:
@@ -53,9 +53,9 @@ static char rcsid[] = "$Id$";
|
|||||||
#include "sudo.h"
|
#include "sudo.h"
|
||||||
|
|
||||||
#ifndef STDC_HEADERS
|
#ifndef STDC_HEADERS
|
||||||
extern char *strcpy();
|
extern char *strcpy __P((char *, char *));
|
||||||
extern int readlink();
|
extern int readlink __P((char *, char *, int));
|
||||||
extern int lstat();
|
extern int lstat __P((char *, struct stat *));
|
||||||
#endif /* !STDC_HEADERS */
|
#endif /* !STDC_HEADERS */
|
||||||
|
|
||||||
|
|
||||||
@@ -76,12 +76,6 @@ extern int lstat();
|
|||||||
static void realpath_restore __P((char *));
|
static void realpath_restore __P((char *));
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Since we can't count on this being defined...
|
|
||||||
*/
|
|
||||||
extern int errno;
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
*
|
*
|
||||||
* sudo_realpath()
|
* sudo_realpath()
|
||||||
@@ -100,7 +94,7 @@ char * sudo_realpath(old, new)
|
|||||||
int len; /* length parameter */
|
int len; /* length parameter */
|
||||||
|
|
||||||
/* check for brain damage */
|
/* check for brain damage */
|
||||||
if (old == NULL || old[0] == NULL)
|
if (old == NULL || old[0] == '\0')
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
new[MAXPATHLEN] = '\0';
|
new[MAXPATHLEN] = '\0';
|
||||||
|
Reference in New Issue
Block a user