Fix mhsign for gpg2: Expiry date format
[mmh] / sbr / print_version.c
index 28ce0c9..7223390 100644 (file)
@@ -1,16 +1,19 @@
 /*
- * print_version.c -- print a version string
- *
- * This code is Copyright (c) 2002, by the authors of nmh.  See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
+** print_version.c -- print a version string
+**
+** This code is Copyright (c) 2002, by the authors of nmh.  See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
 
 #include <h/mh.h>
 
 
 void
-print_version (char *invo_name)
+print_version(char *invo_name)
 {
-       printf("%s -- %s\n", invo_name, version_str);
+       printf("%s -- %s\n", invo_name, version);
+       if (strcmp(version, lib_version)!=0) {
+               printf("libversion: %s\n", lib_version);
+       }
 }