From d271416c7b484596bc5f9ce55a75f3dc9928bd6c Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 22 Oct 1995 14:52:30 +0000 Subject: Minor cleanup, #include's and unused vars. Added compile-time warning to an old funky function. --- lib/libc/stdio/findfp.c | 4 ++++ lib/libc/stdio/mktemp.c | 1 + lib/libc/stdio/vsscanf.c | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdio') diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 64548db..2986a2c 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -127,6 +127,10 @@ found: * XXX. Force immediate allocation of internal memory. Not used by stdio, * but documented historically for certain applications. Bad applications. */ +__warn_references(f_prealloc, + "warning: this program uses f_prealloc(), which is stupid."); + +void f_prealloc() { register struct glue *g; diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index 6cedd6a..3f5966e 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -40,6 +40,7 @@ static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93"; #include #include #include +#include #include static int _gettemp(); diff --git a/lib/libc/stdio/vsscanf.c b/lib/libc/stdio/vsscanf.c index 540f290..e776689 100644 --- a/lib/libc/stdio/vsscanf.c +++ b/lib/libc/stdio/vsscanf.c @@ -57,7 +57,6 @@ vsscanf(str, fmt, ap) const char *fmt; _BSD_VA_LIST_ ap; { - int ret; FILE f; f._flags = __SRD; -- cgit v1.1