summaryrefslogtreecommitdiffstats
path: root/contrib/com_err/compile_et.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1999-09-04 09:49:02 +0000
committermarkm <markm@FreeBSD.org>1999-09-04 09:49:02 +0000
commit444a62d6e11e4184062a6f4999c3986590ebbdfc (patch)
tree3856dd50933ef60bb5672f89cdc80f340b763ac5 /contrib/com_err/compile_et.c
parent167ab7758c87acf2c5b09a1f69eefa1e9f5d713b (diff)
downloadFreeBSD-src-444a62d6e11e4184062a6f4999c3986590ebbdfc.zip
FreeBSD-src-444a62d6e11e4184062a6f4999c3986590ebbdfc.tar.gz
Fix up this for the build; some compatibility files have been added -
these will be submitted back to KTH for inclusion.
Diffstat (limited to 'contrib/com_err/compile_et.c')
-rw-r--r--contrib/com_err/compile_et.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/contrib/com_err/compile_et.c b/contrib/com_err/compile_et.c
index a5323b2..345a39f 100644
--- a/contrib/com_err/compile_et.c
+++ b/contrib/com_err/compile_et.c
@@ -40,9 +40,10 @@
#include "compile_et.h"
#include <getarg.h>
+#if 0
RCSID("$Id: compile_et.c,v 1.12 1999/04/01 09:13:52 joda Exp $");
+#endif
-#include <roken.h>
#include <err.h>
#include "parse.h"
@@ -180,10 +181,8 @@ generate(void)
return generate_c() || generate_h();
}
-int version_flag;
int help_flag;
struct getargs args[] = {
- { "version", 0, arg_flag, &version_flag },
{ "help", 0, arg_flag, &help_flag }
};
int num_args = sizeof(args) / sizeof(args[0]);
@@ -201,15 +200,10 @@ main(int argc, char **argv)
char *p;
int optind = 0;
- set_progname(argv[0]);
if(getarg(args, num_args, argc, argv, &optind))
usage(1);
if(help_flag)
usage(0);
- if(version_flag) {
- print_version(NULL);
- exit(0);
- }
if(optind == argc)
usage(1);
OpenPOWER on IntegriCloud