find: fix SELinux-related warning
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 16 Aug 2007 10:41:24 +0000 (10:41 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 16 Aug 2007 10:41:24 +0000 (10:41 -0000)
findutils/find.c

index 60b2a75aab9bc7f9c44f4d58d80b5e84a51e1f42..86f787d3f1153428cd3aadb19ddea5215c1bf888 100644 (file)
@@ -776,7 +776,8 @@ static action*** parse_params(char **argv)
                        action_context *ap;
                        ap = ALLOC_ACTION(context);
                        ap->context = NULL;
-                       if (selinux_raw_to_trans_context(arg1, &ap->context))
+                       /* SELinux headers erroneously declare non-const parameter */
+                       if (selinux_raw_to_trans_context((char*)arg1, &ap->context))
                                bb_perror_msg("%s", arg1);
                }
 #endif