]> granicus.if.org Git - sudo/commitdiff
should_mail() now returns bool.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jan 2015 17:33:56 +0000 (10:33 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jan 2015 17:33:56 +0000 (10:33 -0700)
plugins/sudoers/logging.c

index 08403b40c0b8579069a5cec86390beb38fd97a3d..56f642fcce98a5549901bc7ffc8b29bcb187b273 100644 (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)