From: Christos Zoulas Date: Tue, 3 Feb 2009 20:27:51 +0000 (+0000) Subject: fix include files. X-Git-Tag: FILE5_05~245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d53cf2c9bab463f9dfdd5c27956f8b0a2f257f7;p=file fix include files. --- diff --git a/src/apprentice.c b/src/apprentice.c index e706af80..39d30caf 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apprentice.c,v 1.146 2008/11/07 18:57:08 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.147 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ #include "magic.h" @@ -45,12 +45,9 @@ FILE_RCSID("@(#)$File: apprentice.c,v 1.146 2008/11/07 18:57:08 christos Exp $") #include #include #include -#include -#include #ifdef QUICK #include #endif -#include #include #define EATAB {while (isascii((unsigned char) *l) && \ diff --git a/src/apptype.c b/src/apptype.c index 83e7f21e..6f171ad1 100644 --- a/src/apptype.c +++ b/src/apptype.c @@ -27,10 +27,9 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apptype.c,v 1.9 2008/11/04 16:38:28 christos Exp $") +FILE_RCSID("@(#)$File: apptype.c,v 1.10 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ -#include #include #include diff --git a/src/ascmagic.c b/src/ascmagic.c index b733e786..9236fb4a 100644 --- a/src/ascmagic.c +++ b/src/ascmagic.c @@ -36,11 +36,10 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: ascmagic.c,v 1.74 2008/11/07 19:10:25 christos Exp $") +FILE_RCSID("@(#)$File: ascmagic.c,v 1.75 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ #include "magic.h" -#include #include #include #include diff --git a/src/asprintf.c b/src/asprintf.c index aadddbb6..0606593e 100644 --- a/src/asprintf.c +++ b/src/asprintf.c @@ -29,11 +29,9 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: asprintf.c,v 1.2 2008/11/04 16:38:28 christos Exp $") +FILE_RCSID("@(#)$File: asprintf.c,v 1.3 2009/02/03 20:27:51 christos Exp $") #endif -#include - int vasprintf(char **ptr, const char *format_string, va_list vargs); int asprintf(char **ptr, const char *fmt, ...) diff --git a/src/cdf.c b/src/cdf.c index ef8d139e..0c66d11b 100644 --- a/src/cdf.c +++ b/src/cdf.c @@ -32,27 +32,18 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf.c,v 1.16 2008/12/12 20:53:02 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.17 2009/02/03 20:27:51 christos Exp $") #endif #include -#include #ifdef CDF_DEBUG #include #endif #include #include -#include -#include #include #include #include -#ifdef HAVE_STDINT_H -#include -#endif -#ifdef HAVE_INTTYPES_H -#include -#endif #ifndef EFTYPE #define EFTYPE EINVAL diff --git a/src/cdf_time.c b/src/cdf_time.c index 2ce199a0..e531b2de 100644 --- a/src/cdf_time.c +++ b/src/cdf_time.c @@ -27,23 +27,14 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf_time.c,v 1.4 2008/11/04 16:38:28 christos Exp $") +FILE_RCSID("@(#)$File: cdf_time.c,v 1.5 2009/02/03 20:27:51 christos Exp $") #endif -#include -#include #include #ifdef TEST #include #endif #include -#include -#ifdef HAVE_STDINT_H -#include -#endif -#ifdef HAVE_INTTYPES_H -#include -#endif #include "cdf.h" diff --git a/src/compress.c b/src/compress.c index 2f00e188..0a30803c 100644 --- a/src/compress.c +++ b/src/compress.c @@ -35,18 +35,16 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: compress.c,v 1.60 2008/11/27 22:16:54 christos Exp $") +FILE_RCSID("@(#)$File: compress.c,v 1.61 2009/02/03 20:27:51 christos Exp $") #endif #include "magic.h" -#include #include #ifdef HAVE_UNISTD_H #include #endif #include #include -#include #include #ifdef HAVE_SYS_WAIT_H #include diff --git a/src/encoding.c b/src/encoding.c index 8a1a634a..4e94f9b8 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -33,14 +33,16 @@ */ #include "file.h" + +#ifndef lint +FILE_RCSID("@(#)$File: encoding.c,v 1.3 2009/02/03 20:27:51 christos Exp $") +#endif /* lint */ + #include "magic.h" #include #include #include -#ifndef lint -FILE_RCSID("@(#)$File: encoding.c,v 1.2 2008/11/06 22:49:08 rrt Exp $") -#endif /* lint */ private int looks_ascii(const unsigned char *, size_t, unichar *, size_t *); private int looks_utf8_with_BOM(const unsigned char *, size_t, unichar *, diff --git a/src/file.c b/src/file.c index 66c40fe8..9b4747b2 100644 --- a/src/file.c +++ b/src/file.c @@ -32,18 +32,14 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.129 2008/12/03 18:05:18 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.130 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ #include "magic.h" -#include #include #include #include -#include -#include /* for MAXPATHLEN */ -#include #ifdef RESTORE_TIME # if (__COHERENT__ >= 0x420) # include diff --git a/src/file.h b/src/file.h index 65522c0b..204f4987 100644 --- a/src/file.h +++ b/src/file.h @@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.117 2008/11/22 17:01:28 chl Exp $ + * @(#)$File: file.h,v 1.118 2009/02/03 20:27:51 christos Exp $ */ #ifndef __file_h__ @@ -48,6 +48,7 @@ #endif #include #include +#include /* Do this here and now, because struct stat gets re-defined on solaris */ #include #include diff --git a/src/fsmagic.c b/src/fsmagic.c index 4a23410e..a68cd109 100644 --- a/src/fsmagic.c +++ b/src/fsmagic.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: fsmagic.c,v 1.58 2008/11/22 17:01:28 chl Exp $") +FILE_RCSID("@(#)$File: fsmagic.c,v 1.59 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ #include "magic.h" @@ -41,7 +41,6 @@ FILE_RCSID("@(#)$File: fsmagic.c,v 1.58 2008/11/22 17:01:28 chl Exp $") #include #endif #include -#include /* Since major is a function on SVR4, we cannot use `ifndef major'. */ #ifdef MAJOR_IN_MKDEV # include diff --git a/src/getopt_long.c b/src/getopt_long.c index 97de4c3b..2ad5b4de 100644 --- a/src/getopt_long.c +++ b/src/getopt_long.c @@ -32,14 +32,13 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: getopt_long.c,v 1.4 2008/11/04 16:38:28 christos Exp $") +FILE_RCSID("@(#)$File: getopt_long.c,v 1.5 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ #include #ifdef HAVE_ERR_H #include #else -#include #define warnx printf #endif #include diff --git a/src/is_tar.c b/src/is_tar.c index 3fb5cc5e..f962edbd 100644 --- a/src/is_tar.c +++ b/src/is_tar.c @@ -40,13 +40,12 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: is_tar.c,v 1.35 2008/11/07 18:57:28 christos Exp $") +FILE_RCSID("@(#)$File: is_tar.c,v 1.36 2009/02/03 20:27:51 christos Exp $") #endif #include "magic.h" #include #include -#include #include "tar.h" #define isodigit(c) ( ((c) >= '0') && ((c) <= '7') ) diff --git a/src/magic.c b/src/magic.c index daaa75a5..26b7b864 100644 --- a/src/magic.c +++ b/src/magic.c @@ -28,18 +28,14 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: magic.c,v 1.58 2009/01/12 20:15:11 christos Exp $") +FILE_RCSID("@(#)$File: magic.c,v 1.59 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ #include "magic.h" -#include #include #include #include -#include -#include /* for MAXPATHLEN */ -#include #ifdef QUICK #include #endif diff --git a/src/print.c b/src/print.c index ced93164..d44a5b3b 100644 --- a/src/print.c +++ b/src/print.c @@ -32,11 +32,9 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: print.c,v 1.65 2008/11/04 16:38:28 christos Exp $") +FILE_RCSID("@(#)$File: print.c,v 1.66 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ -#include -#include #include #include #include diff --git a/src/readcdf.c b/src/readcdf.c index 1bd4cb8b..27031dbd 100644 --- a/src/readcdf.c +++ b/src/readcdf.c @@ -26,14 +26,11 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readcdf.c,v 1.10 2008/12/03 22:54:02 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.11 2009/02/03 20:27:51 christos Exp $") #endif -#include #include #include -#include -#include #include #include #include diff --git a/src/vasprintf.c b/src/vasprintf.c index 3ca63a3a..3e3af206 100644 --- a/src/vasprintf.c +++ b/src/vasprintf.c @@ -108,11 +108,10 @@ you use strange formats. #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: vasprintf.c,v 1.6 2008/11/04 16:38:28 christos Exp $") +FILE_RCSID("@(#)$File: vasprintf.c,v 1.7 2009/02/03 20:27:52 christos Exp $") #endif /* lint */ #include -#include #include #include #include