]> granicus.if.org Git - file/commitdiff
use CCAST, instead of __UNCONST
authorChristos Zoulas <christos@zoulas.com>
Tue, 20 Dec 2016 13:29:20 +0000 (13:29 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 20 Dec 2016 13:29:20 +0000 (13:29 +0000)
src/softmagic.c

index 4caa86409076b31d1fbda479f7c92cb79250ab3b..6a0375d3a581b961463c95f3e904b5378fc0d111 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.239 2016/12/20 03:15:16 christos Exp $")
+FILE_RCSID("@(#)$File: softmagic.c,v 1.240 2016/12/20 12:19:25 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -1888,7 +1888,7 @@ magiccheck(struct magic_set *ms, struct magic *m)
                            copy[--slen] = '\0';
                            search = copy;
                        } else {
-                           search = __UNCONST("");
+                           search = CCAST(char *, "");
                            copy = NULL;
                        }
                        rc = file_regexec(&rx, (const char *)search,