From: Christos Zoulas Date: Fri, 12 Sep 2003 19:19:22 +0000 (+0000) Subject: print header to stderr. X-Git-Tag: FILE4_04~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67f753dfca0a6dfa7f8b2288cf282b2c9f9e2427;p=file print header to stderr. --- diff --git a/src/apprentice.c b/src/apprentice.c index 7db3b650..65b60c52 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -50,7 +50,7 @@ #endif #ifndef lint -FILE_RCSID("@(#)$Id: apprentice.c,v 1.62 2003/09/12 19:08:48 christos Exp $") +FILE_RCSID("@(#)$Id: apprentice.c,v 1.63 2003/09/12 19:19:22 christos Exp $") #endif /* lint */ #define EATAB {while (isascii((unsigned char) *l) && \ @@ -265,7 +265,7 @@ apprentice_file(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, /* parse it */ if (action == FILE_CHECK) /* print silly verbose header for USG compat. */ - (void) printf("%s\n", hdr); + (void)fprintf(stderr, "%s\n", hdr); for (lineno = 1; fgets(line, BUFSIZ, f) != NULL; lineno++) { if (line[0]=='#') /* comment, do not parse */