diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-25 21:43:05 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-25 21:43:05 +0000 |
commit | 8284ff4fd6e167a1c3e661be8ae0ebafa8ced702 (patch) | |
tree | 6e5d603bec212a35871dc8504275b2d348a17dde /lib/libc/stdio/findfp.c | |
parent | 425eeff252fdc30a775caad224498826200d9a49 (diff) | |
download | FreeBSD-src-8284ff4fd6e167a1c3e661be8ae0ebafa8ced702.zip FreeBSD-src-8284ff4fd6e167a1c3e661be8ae0ebafa8ced702.tar.gz |
MFC r288006,r288031,r288032,r288033:
r288006 (by rodrigc):
Add declarations to eliminate -Wmissing-prototypes warnings
r288031 (by rodrigc):
Remove names from some prototypes
r288032 (by rodrigc):
Remove names from some prototypes
r288033 (by rodrigc):
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r-- | lib/libc/stdio/findfp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 12d3659..b8bb5af 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -113,7 +113,7 @@ moreglue(int n) * Find a free FILE for fopen et al. */ FILE * -__sfp() +__sfp(void) { FILE *fp; int n; @@ -165,6 +165,7 @@ found: */ __warn_references(f_prealloc, "warning: this program uses f_prealloc(), which is not recommended."); +void f_prealloc(void); void f_prealloc(void) @@ -196,7 +197,7 @@ f_prealloc(void) * The name `_cleanup' is, alas, fairly well known outside stdio. */ void -_cleanup() +_cleanup(void) { /* (void) _fwalk(fclose); */ (void) _fwalk(__sflush); /* `cheating' */ @@ -206,7 +207,7 @@ _cleanup() * __sinit() is called whenever stdio's internal variables must be set up. */ void -__sinit() +__sinit(void) { /* Make sure we clean up on exit. */ |