From 1afa7ab49d273e318648fba269b8e5e60acb64f7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 20 Mar 2008 15:06:29 +0100 Subject: [PATCH] chfn: fix compiler warnings in selinux stuff selinux_utils.c:16: warning: assignment discards qualifiers from pointer target type Signed-off-by: Karel Zak --- login-utils/selinux_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-utils/selinux_utils.c b/login-utils/selinux_utils.c index e21b8e1d..fff5eaae 100644 --- a/login-utils/selinux_utils.c +++ b/login-utils/selinux_utils.c @@ -10,7 +10,7 @@ int checkAccess(char *chuser, int access) { int status=-1; security_context_t user_context; - char *user=NULL; + const char *user=NULL; if( getprevcon(&user_context)==0 ) { context_t c=context_new(user_context); user=context_user_get(c); -- 2.39.5