Code cleanup:-
The usual stuff, adding missing function prototypes, argument types, return values, etc.
This commit is contained in:
parent
a136e00402
commit
9915c09cf9
@ -45,7 +45,7 @@ static char sccsid[] = "@(#)ferror.c 8.1 (Berkeley) 6/4/93";
|
||||
*/
|
||||
#undef ferror
|
||||
|
||||
ferror(fp)
|
||||
int ferror(fp)
|
||||
FILE *fp;
|
||||
{
|
||||
return (__sferror(fp));
|
||||
|
@ -50,7 +50,7 @@ static char sccsid[] = "@(#)fgetln.c 8.2 (Berkeley) 1/2/94";
|
||||
* so we add 1 here.
|
||||
#endif
|
||||
*/
|
||||
__slbexpand(fp, newsize)
|
||||
int __slbexpand(fp, newsize)
|
||||
FILE *fp;
|
||||
size_t newsize;
|
||||
{
|
||||
|
@ -45,7 +45,7 @@ static char sccsid[] = "@(#)fileno.c 8.1 (Berkeley) 6/4/93";
|
||||
*/
|
||||
#undef fileno
|
||||
|
||||
fileno(fp)
|
||||
int fileno(fp)
|
||||
FILE *fp;
|
||||
{
|
||||
return (__sfileno(fp));
|
||||
|
@ -48,7 +48,7 @@ static char sccsid[] = "@(#)flags.c 8.1 (Berkeley) 6/4/93";
|
||||
* to be passed to an open() syscall through *optr.
|
||||
* Return 0 on error.
|
||||
*/
|
||||
__sflags(mode, optr)
|
||||
int __sflags(mode, optr)
|
||||
register char *mode;
|
||||
int *optr;
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ static char sccsid[] = "@(#)fprintf.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif
|
||||
|
||||
#if __STDC__
|
||||
fprintf(FILE *fp, const char *fmt, ...)
|
||||
int fprintf(FILE *fp, const char *fmt, ...)
|
||||
#else
|
||||
fprintf(fp, fmt, va_alist)
|
||||
FILE *fp;
|
||||
|
Loading…
Reference in New Issue
Block a user