From: Ian Darwin Date: Fri, 11 Sep 1992 17:42:09 +0000 (+0000) Subject: Oops, FILE* is not const, it gets modified by stdio... X-Git-Tag: FILE3_27~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baa82b3d5be4e562acc3593f8ce15e70dbdd3433;p=file Oops, FILE* is not const, it gets modified by stdio... Zoulas' compiler found this one, btw. --- diff --git a/src/print.c b/src/print.c index c9aee412..bef5bd21 100644 --- a/src/print.c +++ b/src/print.c @@ -39,7 +39,7 @@ #ifndef lint static char *moduleid = - "@(#)$Id: print.c,v 1.16 1992/09/11 12:37:28 ian Exp $"; + "@(#)$Id: print.c,v 1.17 1992/09/11 17:42:09 ian Exp $"; #endif /* lint */ void @@ -87,7 +87,7 @@ ckfputs(str, fil) /*VARARGS*/ void #if __STDC__ -ckfprintf(const FILE *f, const char *fmt, ...) +ckfprintf(FILE *f, const char *fmt, ...) #else ckfprintf(va_alist) va_dcl @@ -97,10 +97,10 @@ ckfprintf(va_alist) #if __STDC__ va_start(va, fmt); #else - const FILE *f; + FILE *f; const char *fmt; va_start(va); - f = va_arg(va, const FILE *); + f = va_arg(va, FILE *); fmt = va_arg(va, const char *); #endif (void) vfprintf(f, fmt, va);