[PATCH] 2.6.13-rc1-mm1 audit_log_start() warning fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew,

audit_log_start() seems to take 3 arguments, but
its defined to take only 2 when AUDIT is turned
off. Simple patch to fix it.

security/selinux/avc.c:553:75: macro "audit_log_start"
passed 3 arguments, but takes just 2

Thanks,
Badari

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--- linux-2.6.13-rc1.org/include/linux/audit.h	2005-07-01 12:57:31.000000000 -0700
+++ linux-2.6.13-rc1/include/linux/audit.h	2005-07-01 13:24:21.000000000 -0700
@@ -286,7 +286,7 @@ extern void		    audit_log_lost(const ch
 extern struct semaphore audit_netlink_sem;
 #else
 #define audit_log(c,t,f,...) do { ; } while (0)
-#define audit_log_start(c,t) ({ NULL; })
+#define audit_log_start(c,g,t) ({ NULL; })
 #define audit_log_vformat(b,f,a) do { ; } while (0)
 #define audit_log_format(b,f,...) do { ; } while (0)
 #define audit_log_end(b) do { ; } while (0)

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux