OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.33 -> 1.34

--- lmtp2nntp_config.c   2002/01/31 15:42:31     1.33
+++ lmtp2nntp_config.c   2002/01/31 15:53:43     1.34
@@ -774,6 +774,21 @@
     }
     catch (ex)
         rethrow;
+
+    /* --version FLAG */
+    try {
+        if (   (val_get(ctx->val, "option.version", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.f != 1)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--version = %d", ov->data.f);
+
+        log1(ctx, INFO, "program version %s", lmtp2nntp_version.v_gnu);
+        fprintf(stdout, "%s\n", lmtp2nntp_version.v_gnu); //FIXME is fprintf really the way to go?
+
+    }
+    catch (ex)
+        rethrow;
 CUS:
     return;
 }

CVSTrac 2.0.1