summaryrefslogtreecommitdiffstats
path: root/bin/pax/getoldopt.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
committerimp <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
commit50014e35418ca00d25ea852fc4f94acf80be4df3 (patch)
treef26db6e85c29b2244f601bdb366caa7f26a96c24 /bin/pax/getoldopt.c
parent3fc8df52e3856eeac730574d5ae122806dd1e1ef (diff)
downloadFreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.zip
FreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.tar.gz
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
Diffstat (limited to 'bin/pax/getoldopt.c')
-rw-r--r--bin/pax/getoldopt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/pax/getoldopt.c b/bin/pax/getoldopt.c
index 37c235b..291e155 100644
--- a/bin/pax/getoldopt.c
+++ b/bin/pax/getoldopt.c
@@ -19,10 +19,7 @@ static const char rcsid[] = "$FreeBSD$";
#include <unistd.h>
int
-getoldopt(argc, argv, optstring)
- int argc;
- char **argv;
- char *optstring;
+getoldopt(int argc, char **argv, char *optstring)
{
static char *key; /* Points to next keyletter */
static char use_getopt; /* !=0 if argv[1][0] was '-' */
OpenPOWER on IntegriCloud