]> granicus.if.org Git - file/commitdiff
mdump is not available with COMPILE_ONLY
authorChristos Zoulas <christos@zoulas.com>
Tue, 23 Sep 2008 14:34:25 +0000 (14:34 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 23 Sep 2008 14:34:25 +0000 (14:34 +0000)
src/softmagic.c

index 52567976dcac0814d576a0df8a4b2a4f4f14da83..d81e6868d9dfee23b062bfc43923b461e8f66aa3 100644 (file)
@@ -38,7 +38,7 @@
 
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.120 2008/07/28 17:25:21 christos Exp $")
+FILE_RCSID("@(#)$File: softmagic.c,v 1.121 2008/08/31 04:52:03 christos Exp $")
 #endif /* lint */
 
 private int match(struct magic_set *, struct magic *, uint32_t,
@@ -904,7 +904,9 @@ mget(struct magic_set *ms, const unsigned char *s,
 
        if ((ms->flags & MAGIC_DEBUG) != 0) {
                mdebug(offset, (char *)(void *)p, sizeof(union VALUETYPE));
+#ifndef COMPILE_ONLY
                file_mdump(m);
+#endif
        }
 
        if (m->flag & INDIR) {
@@ -1374,7 +1376,9 @@ mget(struct magic_set *ms, const unsigned char *s,
                if ((ms->flags & MAGIC_DEBUG) != 0) {
                        mdebug(offset, (char *)(void *)p,
                            sizeof(union VALUETYPE));
+#ifndef COMPILE_ONLY
                        file_mdump(m);
+#endif
                }
        }