]> granicus.if.org Git - file/commitdiff
remove leftover debugging.
authorChristos Zoulas <christos@zoulas.com>
Fri, 10 Jun 2011 09:23:28 +0000 (09:23 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 10 Jun 2011 09:23:28 +0000 (09:23 +0000)
src/apprentice.c

index 54546869a0fafd711a108e9bf207c8747235c55b..2a554c6d657f54196ffd4551c4c6ecfaa7a807f2 100644 (file)
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.167 2011/03/15 22:15:30 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.169 2011/05/10 17:08:13 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
-#include "patchlevel.h"
 #include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
@@ -2259,8 +2258,8 @@ apprentice_map(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp,
        else
                version = ptr[1];
        if (version != VERSIONNO) {
-               file_error(ms, 0, "File %d.%d supports only version %d magic "
-                   "files. `%s' is version %d", FILE_VERSION_MAJOR, patchlevel,
+               file_error(ms, 0, "File %s supports only version %d magic "
+                   "files. `%s' is version %d", VERSION,
                    VERSIONNO, dbname, version);
                goto error1;
        }
@@ -2467,8 +2466,6 @@ bs1(struct magic *m)
        m->in_offset = swap4((uint32_t)m->in_offset);
        m->lineno = swap4((uint32_t)m->lineno);
        if (IS_STRING(m->type)) {
-               if (m->type == FILE_PSTRING)
-                       printf("flags! %d\n", m->str_flags);
                m->str_range = swap4(m->str_range);
                m->str_flags = swap4(m->str_flags);
        }