From: Greg Hudson Date: Tue, 8 Mar 2011 17:22:20 +0000 (+0000) Subject: prototype/getopt.c hasn't been updated in quite some time and we don't X-Git-Tag: krb5-1.10-alpha1~545 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=619c16d19e9f238f6276bb4d30a24bb126cde595;p=thirdparty%2Fkrb5.git prototype/getopt.c hasn't been updated in quite some time and we don't really need it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24691 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/prototype/getopt.c b/src/prototype/getopt.c deleted file mode 100644 index 6c47c4fea0..0000000000 --- a/src/prototype/getopt.c +++ /dev/null @@ -1,31 +0,0 @@ -/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ - -extern int optind; -extern char *optarg; - -main(argc, argv) -int argc; -char **argv; -{ - int c; - int errflg = 0; - - <<>>; - - while ((c = getopt(argc, argv, "<<<>>>")) != -1) { - switch (c) { - <<>>; - case '?': - default: - errflg++; - break; - } - } - if (errflg) { - fprintf(stderr, "Usage: %s <<>>", argv[0]); - exit(2); - } - for (; optind < argc; optind++) { - <<>>; - } -}