summaryrefslogtreecommitdiff
path: root/contrib/file/apprentice.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/file/apprentice.c')
-rw-r--r--contrib/file/apprentice.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/file/apprentice.c b/contrib/file/apprentice.c
index 360a6825b703..5c78c5aec089 100644
--- a/contrib/file/apprentice.c
+++ b/contrib/file/apprentice.c
@@ -28,6 +28,9 @@
#include "file.h"
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <string.h>
#include <ctype.h>
#include <errno.h>
@@ -39,7 +42,7 @@
#endif
#ifndef lint
-FILE_RCSID("@(#)$Id: apprentice.c,v 1.42 2001/07/22 21:04:15 christos Exp $")
+FILE_RCSID("@(#)$Id: apprentice.c,v 1.44 2001/08/01 14:03:19 christos Exp $")
#endif /* lint */
#define EATAB {while (isascii((unsigned char) *l) && \
@@ -330,7 +333,7 @@ parse(magicp, nmagicp, l, action)
{
int i = 0;
struct magic *m;
- char *t, *s;
+ char *t;
#define ALLOC_INCR 200
if (*nmagicp + 1 >= maxmagic){