]> granicus.if.org Git - file/commitdiff
print header to stderr.
authorChristos Zoulas <christos@zoulas.com>
Fri, 12 Sep 2003 19:19:22 +0000 (19:19 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 12 Sep 2003 19:19:22 +0000 (19:19 +0000)
src/apprentice.c

index 7db3b650826a67cf5363e0ce31b758f9c1bb4734..65b60c5209e057acf1b51d6eab5bc4fcabe9bbd2 100644 (file)
@@ -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 */