]> granicus.if.org Git - sudo/commitdiff
Move debug_decl() in log_failure() to be after the variable
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 30 Nov 2012 16:39:27 +0000 (11:39 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 30 Nov 2012 16:39:27 +0000 (11:39 -0500)
declarations for C89.

plugins/sudoers/logging.c

index f17938553007b200fcaca52441b0a8344cd6b067..fc28380359b1268dcfbe7ad9bfb78cb2a10ddfe9 100644 (file)
@@ -315,8 +315,8 @@ log_denial(int status, bool inform_user)
 void
 log_failure(int status, int flags)
 {
-    debug_decl(log_failure, SUDO_DEBUG_LOGGING)
     bool inform_user = true;
+    debug_decl(log_failure, SUDO_DEBUG_LOGGING)
 
     /* The user doesn't always get to see the log message (path info). */
     if (!ISSET(status, FLAG_NO_USER | FLAG_NO_HOST) && def_path_info &&