summaryrefslogtreecommitdiff
path: root/src/apprentice.c
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2016-10-24 18:02:17 +0000
committerChristos Zoulas <christos@zoulas.com>2016-10-24 18:02:17 +0000
commit0ee56fcf9372d47fff47cf2a57e4260e16edf334 (patch)
tree143ad547d284baaa0555f0392659c7ea0fce734b /src/apprentice.c
parentc7c98295df7cafd54658e998e22ce98ff27914c7 (diff)
downloadfile-git-0ee56fcf9372d47fff47cf2a57e4260e16edf334.tar.gz
more c++ casts
Diffstat (limited to 'src/apprentice.c')
-rw-r--r--src/apprentice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apprentice.c b/src/apprentice.c
index 6795cb99..f2622c08 100644
--- a/src/apprentice.c
+++ b/src/apprentice.c
@@ -32,7 +32,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.254 2016/10/24 15:21:07 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.255 2016/10/24 18:02:17 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -590,7 +590,7 @@ mlist_free(struct mlist *mlist)
ml = mlist->next;
for (ml = mlist->next; (next = ml->next) != NULL; ml = next) {
if (ml->map)
- apprentice_unmap(ml->map);
+ apprentice_unmap(CAST(struct magic_map *, ml->map));
free(ml);
if (ml == mlist)
break;