diff --git a/usr.sbin/getextattr/Makefile b/usr.sbin/getextattr/Makefile index 0f12aefcad67..c16e6446882b 100644 --- a/usr.sbin/getextattr/Makefile +++ b/usr.sbin/getextattr/Makefile @@ -3,4 +3,6 @@ PROG= getextattr MAN= getextattr.8 +WARNS?= 2 + .include diff --git a/usr.sbin/getextattr/getextattr.c b/usr.sbin/getextattr/getextattr.c index 2b14865c1ac2..c16cf41910cb 100644 --- a/usr.sbin/getextattr/getextattr.c +++ b/usr.sbin/getextattr/getextattr.c @@ -38,6 +38,10 @@ #include #include +#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[]) {