[libselinux] Add Dan Berrange code cleanup patches.
Daniel J Walsh
dwalsh at fedoraproject.org
Mon Jan 23 18:39:08 UTC 2012
commit f5849c1fad31ab3ed1a1dc36dad2b3164faf8a99
Author: Dan Walsh <dwalsh at redhat.com>
Date: Mon Jan 23 13:39:03 2012 -0500
Add Dan Berrange code cleanup patches.
libselinux-rhat.patch | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libselinux-rhat.patch b/libselinux-rhat.patch
index c55f204..242007c 100644
--- a/libselinux-rhat.patch
+++ b/libselinux-rhat.patch
@@ -1,13 +1,17 @@
diff --git a/libselinux/include/selinux/avc.h b/libselinux/include/selinux/avc.h
-index da18e41..9655957 100644
+index da18e41..87a2b12 100644
--- a/libselinux/include/selinux/avc.h
+++ b/libselinux/include/selinux/avc.h
-@@ -130,7 +130,7 @@ struct avc_memory_callback {
+@@ -130,7 +130,11 @@ struct avc_memory_callback {
struct avc_log_callback {
/* log the printf-style format and arguments. */
- void (*func_log) (const char *fmt, ...);
-+ void (*func_log) (const char *fmt, ...) __attribute__((__format__(printf, 1, 2)));
++ void
++#ifdef __GNUC__
++__attribute__ ((format(printf, 1, 2)))
++#endif
++ (*func_log) (const char *fmt, ...);
/* store a string representation of auditdata (corresponding
to the given security class) into msgbuf. */
void (*func_audit) (void *auditdata, security_class_t cls,
More information about the scm-commits
mailing list