OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp.c versions 1.18 and 1.19
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.18 -> 1.19

--- lmtp2nntp.c  2001/08/16 15:00:50     1.18
+++ lmtp2nntp.c  2001/08/20 10:33:22     1.19
@@ -26,6 +26,9 @@
 #include "sa.h"
 #include "msg.h"
 #include "trace.h"
+#define _VERSION_C_AS_HEADER_
+#include "version.c"
+#undef  _VERSION_C_AS_HEADER_
 
 #ifndef FALSE
 #define FALSE (1 != 1)
@@ -169,7 +172,7 @@
 #endif
 
     /* read in the arguments */
-    while ((i = getopt(argc, argv, "d:g:h:t:v")) != -1) {
+    while ((i = getopt(argc, argv, "d:g:h:t:vV")) != -1) {
         switch (i) {
             case 'd': /* -d deliverymode */
                 if      (strcasecmp(optarg, "post") == 0)
@@ -272,6 +275,10 @@
             case 'v': // -v (verbose)
                 ctx->option_verbose = TRUE;
                 break;
+            case 'V': // -V (version)
+                fprintf(stdout, "%s\n", lmtp2nntp_version.v_gnu);
+                exit(0);
+                break;
             case '?':
             default:
                 usage(progname);

CVSTrac 2.0.1