2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

should_mail() now returns bool.

This commit is contained in:
Todd C. Miller
2015-01-21 10:33:56 -07:00
parent 2188c83a20
commit 5415b3d2af

View File

@@ -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)