mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Minor cleanup, #include's and unused vars.
Added compile-time warning to an old funky function.
This commit is contained in:
parent
4c3af266f6
commit
c0d41487f2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11667
@ -127,6 +127,10 @@ __sfp()
|
||||
* 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;
|
||||
|
@ -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();
|
||||
|
@ -57,7 +57,6 @@ vsscanf(str, fmt, ap)
|
||||
const char *fmt;
|
||||
_BSD_VA_LIST_ ap;
|
||||
{
|
||||
int ret;
|
||||
FILE f;
|
||||
|
||||
f._flags = __SRD;
|
||||
|
Loading…
Reference in New Issue
Block a user