WARNS=2 and style(9) cleanup:

o prototype usage()
o move BUFSIZE define above the functions
o nuke externs that are defined in unistd.h

Approved by:	rwatson
Obtained from:	TrustedBSD Project
This commit is contained in:
Chris D. Faulhaber 2001-12-04 03:28:31 +00:00
parent 8ea9ab6622
commit 54d8895199
2 changed files with 6 additions and 5 deletions

View File

@ -3,4 +3,6 @@
PROG= getextattr
MAN= getextattr.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -38,6 +38,10 @@
#include <unistd.h>
#include <vis.h>
#define BUFSIZE 2048
void usage(void);
void
usage(void)
{
@ -47,11 +51,6 @@ usage(void)
exit(-1);
}
extern char *optarg;
extern int optind;
#define BUFSIZE 2048
int
main(int argc, char *argv[])
{