summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/funopen.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-05 19:31:38 +0000
committered <ed@FreeBSD.org>2009-12-05 19:31:38 +0000
commit06fcc20479dbea7b80fde60d667c7455ca58c451 (patch)
tree7888f1fc2bd55cbcf966048d3b4db70a78bdb2b3 /lib/libc/stdio/funopen.c
parente912442e98904e4d3d77ac344f9a353688ca3e9f (diff)
downloadFreeBSD-src-06fcc20479dbea7b80fde60d667c7455ca58c451.zip
FreeBSD-src-06fcc20479dbea7b80fde60d667c7455ca58c451.tar.gz
Fix many "function declaration isn't a prototype" warnings in libc.
I've only fixed code that seems to be written by `us'. There are still many warnings like this present in resolv/, rpc/, stdtime/ and yp/.
Diffstat (limited to 'lib/libc/stdio/funopen.c')
-rw-r--r--lib/libc/stdio/funopen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdio/funopen.c b/lib/libc/stdio/funopen.c
index 9535340..573589f 100644
--- a/lib/libc/stdio/funopen.c
+++ b/lib/libc/stdio/funopen.c
@@ -42,11 +42,11 @@ __FBSDID("$FreeBSD$");
#include "local.h"
FILE *
-funopen(cookie, readfn, writefn, seekfn, closefn)
- const void *cookie;
- int (*readfn)(), (*writefn)();
- fpos_t (*seekfn)(void *cookie, fpos_t off, int whence);
- int (*closefn)();
+funopen(const void *cookie,
+ int (*readfn)(void *, char *, int),
+ int (*writefn)(void *, const char *, int),
+ fpos_t (*seekfn)(void *, fpos_t, int),
+ int (*closefn)(void *))
{
FILE *fp;
int flags;
OpenPOWER on IntegriCloud