]> granicus.if.org Git - shadow/commitdiff
* lib/selinux.c, lib/semanage.c: prototypes.h was not included.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 8 Jan 2012 16:06:57 +0000 (16:06 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 8 Jan 2012 16:06:57 +0000 (16:06 +0000)
ChangeLog
lib/selinux.c
lib/semanage.c

index ce57ab8f1a36992feec7782ce4cc1266a4f9fa34..b9fee552ad41f96c71845f3457c1dd78278c4a8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2012-01-08  Nicolas François  <nicolas.francois@centraliens.net>
 
        * lib/prototypes.h: Cleanup.
+       * lib/selinux.c, lib/semanage.c: prototypes.h was not included.
 
 2011-12-09  Peter Vrabec  <pvrabec@redhat.com>
 
index 7c29f79f6b745c11efa288c47b63e2b76bbc1023..d7513298bf279fe84498d388407ce3f29690bd6b 100644 (file)
@@ -34,6 +34,7 @@
 #include "defines.h"
 
 #include <selinux/selinux.h>
+#include "prototypes.h"
 
 
 static bool selinux_checked = false;
index a6ba99c738f039bc57e82ea7761ff364abb49204..e983f5f7361da849372a3eca6e0a759c111e46d7 100644 (file)
 
 #include "defines.h"
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdarg.h>
 #include <selinux/selinux.h>
 #include <semanage/semanage.h>
+#include "prototypes.h"
 
 
 #ifndef DEFAULT_SERANGE
@@ -46,7 +49,7 @@
 #endif
 
 
-static void semanage_error_callback (void *varg,
+static void semanage_error_callback (unused void *varg,
                                      semanage_handle_t *handle,
                                      const char *fmt, ...)
 {