summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/findfp.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-09-20 20:34:17 +0000
committerdim <dim@FreeBSD.org>2015-09-20 20:34:17 +0000
commit18b14b4a2fd66af5fcf07d469fe45b32b2c0be76 (patch)
tree6068d0c9297482b6c68c78d37d113e16d44371c0 /lib/libc/stdio/findfp.c
parent7b8be099124cf3848a48077ce37206e0ae691839 (diff)
parente5a64a53e6f41e1fb2f62f6b0fdfdbe1b7d5f5b0 (diff)
downloadFreeBSD-src-18b14b4a2fd66af5fcf07d469fe45b32b2c0be76.zip
FreeBSD-src-18b14b4a2fd66af5fcf07d469fe45b32b2c0be76.tar.gz
Merge ^/head r287878 through r288034.
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r--lib/libc/stdio/findfp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c
index be196b7..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,6 +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)
@@ -195,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' */
@@ -205,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