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