From: Todd C. Miller Date: Wed, 21 Jan 2015 17:33:56 +0000 (-0700) Subject: should_mail() now returns bool. X-Git-Tag: SUDO_1_8_12^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5415b3d2af1cdfc5de54eea6bd2a28c893d18ebf;p=sudo should_mail() now returns bool. --- diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index 08403b40c..56f642fcc 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -65,7 +65,7 @@ static void do_syslog(int, char *); static void do_logfile(char *); static bool send_mail(const char *fmt, ...); -static int should_mail(int); +static bool should_mail(int); static void mysyslog(int, const char *, ...); static char *new_logline(const char *, int); @@ -751,7 +751,7 @@ send_mail(const char *fmt, ...) /* * Determine whether we should send mail based on "status" and defaults options. */ -static int +static bool should_mail(int status) { debug_decl(should_mail, SUDOERS_DEBUG_LOGGING, sudoers_debug_instance)