From: Karel Zak Date: Thu, 20 Mar 2008 14:06:29 +0000 (+0100) Subject: chfn: fix compiler warnings in selinux stuff X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1afa7ab49d273e318648fba269b8e5e60acb64f7;p=util-linux chfn: fix compiler warnings in selinux stuff selinux_utils.c:16: warning: assignment discards qualifiers from pointer target type Signed-off-by: Karel Zak --- 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);