aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c/asn1c.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-02-25 12:52:27 +0000
committerLev Walkin <vlm@lionet.info>2005-02-25 12:52:27 +0000
commitc0d0491ee357a2d4fad1394b920fec9912cc811e (patch)
tree9e2246beb31665b1fe56d73488e4144aa2ab0867 /asn1c/asn1c.c
parent74ee31faaba0b9a35fcf46f4faab2a445f04ff11 (diff)
commonizing
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 6c20893..36916a1 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) {