X-Git-Url: https://git.saurik.com/apple/shell_cmds.git/blobdiff_plain/c0fcf4e10b938344ef61467570bddfdc19cc8b7b..26812dd2205b1e490a62d45c74d0b14e5eb24ad7:/getopt/getopt.c diff --git a/getopt/getopt.c b/getopt/getopt.c index 7a977ea..5e8a743 100644 --- a/getopt/getopt.c +++ b/getopt/getopt.c @@ -1,21 +1,12 @@ -/* $NetBSD: getopt.c,v 1.5 1998/02/03 03:44:22 perry Exp $ */ - #include -#ifndef lint -__RCSID("$NetBSD: getopt.c,v 1.5 1998/02/03 03:44:22 perry Exp $"); -#endif /* not lint */ +__RCSID("$FreeBSD: src/usr.bin/getopt/getopt.c,v 1.10 2002/09/04 23:29:01 dwmalone Exp $"); -#include #include -#include #include - -int main __P((int, char **)); +#include int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int c; int status = 0; @@ -37,5 +28,5 @@ main(argc, argv) for (; optind < argc; optind++) printf(" %s", argv[optind]); printf("\n"); - exit(status); + return status; }