]> err.no Git - util-linux/commitdiff
chfn: fix compiler warnings in selinux stuff
authorKarel Zak <kzak@redhat.com>
Thu, 20 Mar 2008 14:06:29 +0000 (15:06 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 20 Mar 2008 14:06:52 +0000 (15:06 +0100)
selinux_utils.c:16: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/selinux_utils.c

index e21b8e1df471952cf0d59dc01f28be82c4da6e45..fff5eaaeb0f9095fa6c03c6471fe3f4861b930d5 100644 (file)
@@ -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);