summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2016-12-20 13:29:20 +0000
committerChristos Zoulas <christos@zoulas.com>2016-12-20 13:29:20 +0000
commita5d78ff6bf54c2c66c4203592b15e2cfcf018043 (patch)
tree017fd19cb00c96ef960f36e164baa143221f73fd
parent61560793d7a9fc6ece2c28f9c4ed9a5b6b53a1a5 (diff)
downloadfile-git-a5d78ff6bf54c2c66c4203592b15e2cfcf018043.tar.gz
use CCAST, instead of __UNCONST
-rw-r--r--src/softmagic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/softmagic.c b/src/softmagic.c
index bfbbdc5c..165fa355 100644
--- a/src/softmagic.c
+++ b/src/softmagic.c
@@ -32,7 +32,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.240 2016/12/20 12:19:25 christos Exp $")
+FILE_RCSID("@(#)$File: softmagic.c,v 1.241 2016/12/20 13:29:20 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,