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/asn1Decoding.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/asn1Decoding.c')
-rw-r--r-- | src/asn1Decoding.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c index 1df53fb..8e48fec 100644 --- a/src/asn1Decoding.c +++ b/src/asn1Decoding.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 @@ -99,9 +102,9 @@ main(int argc,char *argv[]) int der_len=0; /* FILE *outputFile; */ - opterr=0; /* disable error messages from getopt */ + set_program_name (argv[0]); - printf("\n"); + opterr=0; /* disable error messages from getopt */ while(1){ @@ -119,7 +122,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); exit(0); break; case 'c': /* CHECK SYNTAX */ @@ -280,10 +284,3 @@ main(int argc,char *argv[]) exit(0); } - - - - - - - |