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:
parent
8ea9ab6622
commit
54d8895199
@ -3,4 +3,6 @@
|
|||||||
PROG= getextattr
|
PROG= getextattr
|
||||||
MAN= getextattr.8
|
MAN= getextattr.8
|
||||||
|
|
||||||
|
WARNS?= 2
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -38,6 +38,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <vis.h>
|
#include <vis.h>
|
||||||
|
|
||||||
|
#define BUFSIZE 2048
|
||||||
|
|
||||||
|
void usage(void);
|
||||||
|
|
||||||
void
|
void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
@ -47,11 +51,6 @@ usage(void)
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char *optarg;
|
|
||||||
extern int optind;
|
|
||||||
|
|
||||||
#define BUFSIZE 2048
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user