diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2001-10-08 22:50:54 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-10-08 22:50:54 +0000 |
| commit | 649d615c25f64d6f740ad79df7d6d25d98c9a88b (patch) | |
| tree | 51ee57c1f591278e5d817e2260d7e1132323a26f /contrib/file/apprentice.c | |
| parent | 2e67ec0205346336544da4aeebec926df199ee19 (diff) | |
Notes
Diffstat (limited to 'contrib/file/apprentice.c')
| -rw-r--r-- | contrib/file/apprentice.c | 7 |
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){ |
