mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
added prototypes
This commit is contained in:
19
sudo.c
19
sudo.c
@@ -92,6 +92,14 @@ extern char *strdup();
|
||||
#endif /* STDC_HEADERS */
|
||||
|
||||
|
||||
/*
|
||||
* local functions not visible outside sudo.c
|
||||
*/
|
||||
static void usage __P((void));
|
||||
static void load_globals __P((void));
|
||||
static void rmenv __P((char **, char *, int));
|
||||
static void clean_env __P((char **));
|
||||
|
||||
/*
|
||||
* Globals
|
||||
*/
|
||||
@@ -104,15 +112,6 @@ char cwd[MAXPATHLEN + 1];
|
||||
uid_t uid = -2;
|
||||
|
||||
|
||||
/*
|
||||
* local functions not visible outside sudo.c
|
||||
*/
|
||||
static void usage();
|
||||
static void load_globals();
|
||||
static void rmenv();
|
||||
static void clean_env();
|
||||
|
||||
|
||||
/********************************************************************
|
||||
*
|
||||
* main ()
|
||||
@@ -275,7 +274,7 @@ static void load_globals()
|
||||
* loading the host global variable from gethostname() & gethostbyname()
|
||||
*/
|
||||
if ((gethostname(host, MAXHOSTNAMELEN))) {
|
||||
strcpy(host, "amnesiac");
|
||||
strcpy(host, "localhost");
|
||||
log_error(GLOBAL_NO_HOSTNAME);
|
||||
inform_user(GLOBAL_NO_HOSTNAME);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user