summaryrefslogtreecommitdiff
path: root/modules/pam_unix/support.c
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2016-03-04 14:15:31 +0100
committerTomas Mraz <tmraz@fedoraproject.org>2016-03-04 14:15:31 +0100
commit144f8c64cbb906c1f4a7f6bf5fbed16e35ae7bc2 (patch)
treee3a162519956a8af812e7e2d584b9831d0e47dd9 /modules/pam_unix/support.c
parent51e2581a6cbedefebbb7bbe3fd8f3374049bc7c5 (diff)
pam_unix: Silence warnings and fix a minor bug.
Fixes a minor bug in behavior when is_selinux_enabled() returned negative value. * modules/pam_unix/passverify.c: Add parentheses to SELINUX_ENABLED macro. (unix_update_shadow): Safe cast forwho to non-const char *. * modules/pam_unix/support.c: Remove unused SELINUX_ENABLED macro.
Diffstat (limited to 'modules/pam_unix/support.c')
-rw-r--r--modules/pam_unix/support.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c
index abccd828..0fd1dba4 100644
--- a/modules/pam_unix/support.c
+++ b/modules/pam_unix/support.c
@@ -30,12 +30,6 @@
#include "support.h"
#include "passverify.h"
-#ifdef WITH_SELINUX
-#include <selinux/selinux.h>
-#define SELINUX_ENABLED is_selinux_enabled()>0
-#else
-#define SELINUX_ENABLED 0
-#endif
static char *
search_key (const char *key, const char *filename)