From: nekral-guest Date: Sun, 8 Jan 2012 16:06:57 +0000 (+0000) Subject: * lib/selinux.c, lib/semanage.c: prototypes.h was not included. X-Git-Tag: 4.1.5~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59e64f8b828641462c515fc554fe4d02603badf2;p=shadow * lib/selinux.c, lib/semanage.c: prototypes.h was not included. --- 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, ...) {