Code cleanup:-

The usual stuff, adding missing function prototypes, argument types,
return values, etc.
This commit is contained in:
James Raynard 1996-06-12 22:56:41 +00:00
parent a136e00402
commit 9915c09cf9
5 changed files with 5 additions and 5 deletions

View File

@ -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));

View File

@ -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;
{

View File

@ -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));

View File

@ -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;
{

View File

@ -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;