From 59e64f8b828641462c515fc554fe4d02603badf2 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 8 Jan 2012 16:06:57 +0000 Subject: [PATCH] * lib/selinux.c, lib/semanage.c: prototypes.h was not included. --- ChangeLog | 1 + lib/selinux.c | 1 + lib/semanage.c | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ce57ab8f..b9fee552 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2012-01-08 Nicolas François * lib/prototypes.h: Cleanup. + * lib/selinux.c, lib/semanage.c: prototypes.h was not included. 2011-12-09 Peter Vrabec diff --git a/lib/selinux.c b/lib/selinux.c index 7c29f79f..d7513298 100644 --- a/lib/selinux.c +++ b/lib/selinux.c @@ -34,6 +34,7 @@ #include "defines.h" #include +#include "prototypes.h" static bool selinux_checked = false; diff --git a/lib/semanage.c b/lib/semanage.c index a6ba99c7..e983f5f7 100644 --- a/lib/semanage.c +++ b/lib/semanage.c @@ -34,11 +34,14 @@ #include "defines.h" +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include #include #include #include +#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, ...) {