summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/findfp.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-09-20 20:28:49 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-09-20 20:28:49 +0000
commite5a64a53e6f41e1fb2f62f6b0fdfdbe1b7d5f5b0 (patch)
tree996688ef2df5a8bbdf03a5f32369cbfdcb9783eb /lib/libc/stdio/findfp.c
parenta60b0abd9a35fd6c384506295aa6e5d23775994f (diff)
downloadFreeBSD-src-e5a64a53e6f41e1fb2f62f6b0fdfdbe1b7d5f5b0.zip
FreeBSD-src-e5a64a53e6f41e1fb2f62f6b0fdfdbe1b7d5f5b0.tar.gz
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r--lib/libc/stdio/findfp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c
index 8dc8053..0eabe82 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;
@@ -164,7 +164,7 @@ found:
*/
__warn_references(f_prealloc,
"warning: this program uses f_prealloc(), which is not recommended.");
-void f_prealloc_void();
+void f_prealloc(void);
void
f_prealloc(void)
@@ -196,7 +196,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 +206,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. */
OpenPOWER on IntegriCloud