diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-10-19 14:16:13 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-10-19 14:16:13 +0000 |
commit | 4301db6c6941673be002cde6619f58efa8c685af (patch) | |
tree | fb6ec108007d9dde3ca2fd2f602dd4b4132e35df /src/asn1Parser.c | |
parent | 3fce48bb23497a0541f5da5a132f5065c185b088 (diff) | |
download | libtasn1-4301db6c6941673be002cde6619f58efa8c685af.tar.gz libtasn1-4301db6c6941673be002cde6619f58efa8c685af.tar.bz2 libtasn1-4301db6c6941673be002cde6619f58efa8c685af.zip |
Use progname and version-etc-fsf modules.
Diffstat (limited to 'src/asn1Parser.c')
-rw-r--r-- | src/asn1Parser.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/asn1Parser.c b/src/asn1Parser.c index 918b3bf..4909d93 100644 --- a/src/asn1Parser.c +++ b/src/asn1Parser.c @@ -35,6 +35,9 @@ #include <stdlib.h> #include <unistd.h> +#include <progname.h> +#include <version-etc.h> + #ifdef HAVE_GETOPT_H #include <getopt.h> #endif @@ -100,9 +103,9 @@ main(int argc,char *argv[]) char errorDescription[MAX_ERROR_DESCRIPTION_SIZE]; int parse_result=ASN1_SUCCESS; - opterr=0; /* disable error messages from getopt */ + set_program_name (argv[0]); - printf("\n"); + opterr=0; /* disable error messages from getopt */ while(1){ @@ -130,8 +133,8 @@ main(int argc,char *argv[]) exit(0); break; case 'v': /* VERSION */ - printf("%s\n",version_man); - + version_etc (stdout, program_name, PACKAGE, VERSION, + "Fabio Fiorina", NULL); if(outputFileName) free(outputFileName); if(vectorName) free(vectorName); exit(0); |