mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Add appropriate includes and prototypes; staticize; set WARNS=2. Also
minor Makefile nits. Submitted by: Mike Barcroft <mike@q9media.com>
This commit is contained in:
parent
4c34deeecf
commit
015fadf9d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78855
|
@ -1,6 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PROG= fdcontrol
|
||||
WARNS?= 2
|
||||
MAN= fdcontrol.8
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -30,14 +30,18 @@ static const char rcsid[] =
|
|||
"$FreeBSD$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/fdcio.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/fdcio.h>
|
||||
|
||||
int
|
||||
static int getnumber(void);
|
||||
static void usage(void);
|
||||
|
||||
static int
|
||||
getnumber(void)
|
||||
{
|
||||
int i;
|
||||
|
@ -50,7 +54,7 @@ getnumber(void)
|
|||
return i;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: fdcontrol [-d 0|1] | [-s] device-node\n");
|
||||
|
|
Loading…
Reference in a new issue