From 9116e4558fe522c01e89baf830092c48c0545bb6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 16 Jan 1995 21:33:39 +0000 Subject: [PATCH] changed to use new find_path() parameter passing --- logging.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logging.c b/logging.c index d6e323311..a255c7187 100644 --- a/logging.c +++ b/logging.c @@ -370,7 +370,7 @@ static char *mail_argv[] = { "sendmail", static void send_mail() { - char *mailer = MAILER; + char *mailer; char *subject = MAILSUBJECT; int fd[2]; char buf[MAXLOGLEN + 1024]; @@ -380,8 +380,8 @@ static void send_mail() (void) bzero((char *)(&action), sizeof(action)); #endif /* POSIX_SIGNALS */ - if ((mailer = find_path(mailer)) == NULL) { - (void) fprintf(stderr, "%s: mailer (%s) not found\n", Argv[0], mailer); + if (find_path(MAILER, &mailer, NULL) == FALSE) { + (void) fprintf(stderr, "%s: mailer (%s) not found\n", Argv[0], MAILER); exit(1); }