Add Dan Berrange code cleanup patches.
This commit is contained in:
parent
3b242a5830
commit
f5849c1fad
@ -1,13 +1,17 @@
|
|||||||
diff --git a/libselinux/include/selinux/avc.h b/libselinux/include/selinux/avc.h
|
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
|
--- a/libselinux/include/selinux/avc.h
|
||||||
+++ b/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 {
|
struct avc_log_callback {
|
||||||
/* log the printf-style format and arguments. */
|
/* log the printf-style format and arguments. */
|
||||||
- void (*func_log) (const char *fmt, ...);
|
- 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
|
/* store a string representation of auditdata (corresponding
|
||||||
to the given security class) into msgbuf. */
|
to the given security class) into msgbuf. */
|
||||||
void (*func_audit) (void *auditdata, security_class_t cls,
|
void (*func_audit) (void *auditdata, security_class_t cls,
|
||||||
|
Loading…
Reference in New Issue
Block a user