moved cwd into load_globals

This commit is contained in:
Todd C. Miller
1994-05-24 20:18:10 +00:00
parent f12f25204d
commit 0745d60145

View File

@@ -79,7 +79,6 @@ static char logline[MAXLOGLEN + 8];
void log_error(code)
int code;
{
char cwd[MAXPATHLEN + 1];
int argc;
char **argv;
mode_t oldmask;
@@ -106,15 +105,6 @@ void log_error(code)
*/
p = logline + strlen(logline);
/*
* so we know where we are...
*/
#ifdef HAVE_GETCWD
getcwd(cwd, (size_t) (MAXPATHLEN + 1));
#else
getwd(cwd);
#endif /* HAVE_GETCWD */
switch (code) {
case ALL_SYSTEMS_GO:
@@ -439,7 +429,8 @@ static void send_mail()
* This function gets rid of all the ugly zombies
*/
static RETSIGTYPE reapchild()
static RETSIGTYPE reapchild(sig)
int sig;
{
(void) wait(NULL);
(void) signal(SIGCHLD, reapchild);