summaryrefslogtreecommitdiff
path: root/contrib/file/softmagic.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-04-25 07:41:21 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-04-25 07:41:21 +0000
commit61295bbb39b1ec75f468eccc07965d9e39ca83f1 (patch)
treed4e7d9de57b9b7177608732d3d6fced3bb4ebdde /contrib/file/softmagic.c
parentadef7cde5727b99f8e544806572aa0cf102b808b (diff)
Notes
Diffstat (limited to 'contrib/file/softmagic.c')
-rw-r--r--contrib/file/softmagic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/file/softmagic.c b/contrib/file/softmagic.c
index e954b2ee5956..a32e2323fa25 100644
--- a/contrib/file/softmagic.c
+++ b/contrib/file/softmagic.c
@@ -1,5 +1,5 @@
/*
- * softmagic - interpret variable magic from /etc/magic
+ * softmagic - interpret variable magic from MAGIC
*
* Copyright (c) Ian F. Darwin, 1987.
* Written by Ian F. Darwin.
@@ -35,7 +35,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$Id: softmagic.c,v 1.43 2001/03/11 20:29:16 christos Exp $")
+FILE_RCSID("@(#)$Id: softmagic.c,v 1.44 2001/03/17 19:32:50 christos Exp $")
#endif /* lint */
static int match __P((struct magic *, uint32, unsigned char *, int));
@@ -46,6 +46,8 @@ static int32 mprint __P((union VALUETYPE *, struct magic *));
static void mdebug __P((int32, char *, int));
static int mconvert __P((union VALUETYPE *, struct magic *));
+extern int kflag;
+
/*
* softmagic - lookup one file in database
* (already read from /etc/magic by apprentice.c).
@@ -108,9 +110,7 @@ match(magic, nmagic, s, nbytes)
static size_t tmplen = 0;
int32 oldoff = 0;
int returnval = 0; /* if a match is found it is set to 1*/
- extern int kflag;
int firstline = 1; /* a flag to print X\n X\n- X */
- struct mlist *ml;
if (tmpoff == NULL)
if ((tmpoff = (int32 *) malloc(tmplen = 20)) == NULL)