diff options
author | markm <markm@FreeBSD.org> | 2003-05-03 16:39:34 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2003-05-03 16:39:34 +0000 |
commit | 0bdf7b1ca42db0f02d80bb1e42ec62fb25366be8 (patch) | |
tree | 49abf2bbd3188e40e370ac4a9c4a84a009a00066 /bin/pax/getoldopt.c | |
parent | 374b694311fb8af6c16cd7a912dd7b381b8b767e (diff) | |
download | FreeBSD-src-0bdf7b1ca42db0f02d80bb1e42ec62fb25366be8.zip FreeBSD-src-0bdf7b1ca42db0f02d80bb1e42ec62fb25366be8.tar.gz |
Fix a bazillion warnings. This makes almost the whole of src/bin/*
WARNS=6, std=c99 clean.
Tested on: i386, alpha
Diffstat (limited to 'bin/pax/getoldopt.c')
-rw-r--r-- | bin/pax/getoldopt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/pax/getoldopt.c b/bin/pax/getoldopt.c index ca18d91..94611a6 100644 --- a/bin/pax/getoldopt.c +++ b/bin/pax/getoldopt.c @@ -13,12 +13,17 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/types.h> +#include <sys/stat.h> #include <stdio.h> #include <string.h> #include <unistd.h> +#include "pax.h" +#include "extern.h" + int -getoldopt(int argc, char **argv, char *optstring) +getoldopt(int argc, char **argv, const char *optstring) { static char *key; /* Points to next keyletter */ static char use_getopt; /* !=0 if argv[1][0] was '-' */ |