[Pkg-shadow-commits] r3657 - in upstream/trunk: . lib

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Sun Jan 8 16:06:57 UTC 2012


Author: nekral-guest
Date: 2012-01-08 16:06:57 +0000 (Sun, 08 Jan 2012)
New Revision: 3657

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/selinux.c
   upstream/trunk/lib/semanage.c
Log:
	* lib/selinux.c, lib/semanage.c: prototypes.h was not included.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2012-01-08 16:04:27 UTC (rev 3656)
+++ upstream/trunk/ChangeLog	2012-01-08 16:06:57 UTC (rev 3657)
@@ -1,6 +1,7 @@
 2012-01-08  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* lib/prototypes.h: Cleanup.
+	* lib/selinux.c, lib/semanage.c: prototypes.h was not included.
 
 2011-12-09  Peter Vrabec  <pvrabec at redhat.com>
 

Modified: upstream/trunk/lib/selinux.c
===================================================================
--- upstream/trunk/lib/selinux.c	2012-01-08 16:04:27 UTC (rev 3656)
+++ upstream/trunk/lib/selinux.c	2012-01-08 16:06:57 UTC (rev 3657)
@@ -34,6 +34,7 @@
 #include "defines.h"
 
 #include <selinux/selinux.h>
+#include "prototypes.h"
 
 
 static bool selinux_checked = false;

Modified: upstream/trunk/lib/semanage.c
===================================================================
--- upstream/trunk/lib/semanage.c	2012-01-08 16:04:27 UTC (rev 3656)
+++ upstream/trunk/lib/semanage.c	2012-01-08 16:06:57 UTC (rev 3657)
@@ -34,11 +34,14 @@
 
 #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, ...)
 {




More information about the Pkg-shadow-commits mailing list