diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-09-20 03:55:03 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-09-20 03:55:03 +0000 |
commit | 0fd58af2628ada6a88790da9468ce03d82432743 (patch) | |
tree | f46e478fe16612d4d101ea6f409b2d50f80d6c96 | |
parent | 08c0b3cae7201b8a0e94863e7c07d51f4ececd04 (diff) | |
download | FreeBSD-src-0fd58af2628ada6a88790da9468ce03d82432743.zip FreeBSD-src-0fd58af2628ada6a88790da9468ce03d82432743.tar.gz |
Add declarations to eliminate -Wmissing-prototypes warnings
-rw-r--r-- | lib/libc/stdio/_flock_stub.c | 3 | ||||
-rw-r--r-- | lib/libc/stdio/fgetwln.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/findfp.c | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/stdio/_flock_stub.c b/lib/libc/stdio/_flock_stub.c index 0b61315..07ba31f 100644 --- a/lib/libc/stdio/_flock_stub.c +++ b/lib/libc/stdio/_flock_stub.c @@ -55,6 +55,9 @@ __weak_reference(_flockfile_debug_stub, _flockfile_debug); __weak_reference(_ftrylockfile, ftrylockfile); __weak_reference(_funlockfile, funlockfile); +void _flockfile_debug_stub(FILE *fp, char *fname, int lineno); +int _ftrylockfile(FILE *fp); + void _flockfile(FILE *fp) { diff --git a/lib/libc/stdio/fgetwln.c b/lib/libc/stdio/fgetwln.c index 6d9087b..daef9b3 100644 --- a/lib/libc/stdio/fgetwln.c +++ b/lib/libc/stdio/fgetwln.c @@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$"); #include "local.h" #include "xlocale_private.h" +wchar_t *fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale); + wchar_t * fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale) { diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index be196b7..8dc8053 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -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) |