summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1995-10-22 14:52:30 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1995-10-22 14:52:30 +0000
commitc0d41487f2731c71b5c22f13bcfaa73558886cfa (patch)
tree1eb85d4fd1a17fa5c1874841f5a96b604f990584
parent4c3af266f6ed1d7255aa89c13405b5db0a37fc3e (diff)
Notes
-rw-r--r--lib/libc/stdio/findfp.c4
-rw-r--r--lib/libc/stdio/mktemp.c1
-rw-r--r--lib/libc/stdio/vsscanf.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c
index 64548db20b3f..2986a2ccbbd8 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 6cedd6a6be43..3f5966e1f424 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 <fcntl.h>
#include <errno.h>
#include <stdio.h>
+#include <unistd.h>
#include <ctype.h>
static int _gettemp();
diff --git a/lib/libc/stdio/vsscanf.c b/lib/libc/stdio/vsscanf.c
index 540f2906b89b..e776689f9a0e 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;