find: fix SELinux-related warning
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Thu, 16 Aug 2007 10:41:24 +0000 (10:41 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Thu, 16 Aug 2007 10:41:24 +0000 (10:41 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@19528 69ca8d6d-28ef-0310-b511-8ec308f3f277

findutils/find.c

index 60b2a75..86f787d 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