aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c/asn1c.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1c/asn1c.c')
-rw-r--r--asn1c/asn1c.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/asn1c/asn1c.c b/asn1c/asn1c.c
index 6c20893e..36916a16 100644
--- a/asn1c/asn1c.c
+++ b/asn1c/asn1c.c
@@ -1,6 +1,6 @@
/*-
- * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>
- * All rights reserved.
+ * Copyright (c) 2003, 2004, 2005
+ * Lev Walkin <vlm@lionet.info>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -29,15 +29,7 @@
* This is the program that connects the libasn1* libraries together.
* It uses them in turn to parse, fix and then compile or print the ASN.1 tree.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h> /* for stat(2) */
-#include <unistd.h>
-#include <sysexits.h> /* for EX_USAGE */
-#include <assert.h>
-#include <errno.h>
+#include "sys-common.h"
#include <asn1parser.h> /* Parse the ASN.1 file and build a tree */
#include <asn1fix.h> /* Fix the ASN.1 tree */
@@ -46,11 +38,11 @@
#include <asn1c_compat.h> /* Portable basename(3) and dirname(3) */
-static void usage(const char *av0); /* Print the Usage screen and exit */
+#undef COPYRIGHT
+#define COPYRIGHT \
+ "Copyright (c) 2003, 2004, 2005 Lev Walkin <vlm@lionet.info>\n"
-#undef COPYRIGHT
-#define COPYRIGHT \
- "Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>\n"
+static void usage(const char *av0); /* Print the Usage screen and exit */
int
main(int ac, char **av) {