#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>
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;
}
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);
}