From: Christos Zoulas Date: Mon, 12 Mar 2007 15:43:21 +0000 (+0000) Subject: kill the whole __unused thing. X-Git-Tag: FILE5_05~636 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce5d94becf7575168fed95d01a88f759a16c2206;p=file kill the whole __unused thing. --- diff --git a/src/file.c b/src/file.c index 35d512ae..16b2998e 100644 --- a/src/file.c +++ b/src/file.c @@ -71,7 +71,7 @@ #include "patchlevel.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.107 2007/01/25 21:05:46 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.108 2007/03/12 15:43:21 christos Exp $") #endif /* lint */ @@ -358,9 +358,9 @@ main(int argc, char *argv[]) private void /*ARGSUSED*/ -load(const char *m __unused, int flags) +load(const char *m, int flags) { - if (magic) + if (magic || m == NULL) return; magic = magic_open(flags); if (magic == NULL) { diff --git a/src/file.h b/src/file.h index 17d593bc..83034527 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.89 2007/03/01 22:14:54 christos Exp $ + * @(#)$File: file.h,v 1.90 2007/03/12 15:43:21 christos Exp $ */ #ifndef __file_h__ @@ -79,14 +79,6 @@ #endif #endif -#ifndef __unused -#if __GNUC_PREREQ__(2, 7) -#define __unused __attribute__((__unused__)) -#else -#define __unused /* delete */ -#endif -#endif - #ifndef MIN #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif