OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.27 -> 1.28

--- lmtp2nntp.c  2001/08/23 09:12:30     1.27
+++ lmtp2nntp.c  2001/08/27 14:25:33     1.28
@@ -306,7 +306,7 @@
     lmtp_io.select = NULL;
     lmtp_io.read   = trace_read;
     lmtp_io.write  = trace_write;
-    if ((lmtp = lmtp_create(STDIN_FILENO, STDOUT_FILENO, ctx->option_tracing != TRUE ? NULL : &lmtp_io)) == NULL) {
+    if ((lmtp = lmtp_create(STDIN_FILENO, STDOUT_FILENO, ctx->option_tracing ? &lmtp_io : NULL)) == NULL) {
         fprintf(stderr, "%s:Error: Unable to initialize LMTP library\n", progname);
         exit(ERR_EXECUTION);
     }
@@ -396,7 +396,7 @@
      *  RFC1893 2. Status Codes                         5.X.X   Permanent Failure
      *  RFC1893 3.5 Network and Routing Status          X.0.0   Other undefined Status
      */
-    if (ctx->session.lhlo_seen == TRUE) {
+    if (ctx->session.lhlo_seen) {
         res.statuscode = "503";
         res.dsncode    = "5.0.0";
         res.statusmsg  = "Duplicate LHLO.";
@@ -437,7 +437,7 @@
             bOk = FALSE;
         }
         if (bOk && ((ctx->ns[i].nntp = nntp_create(ctx->ns[i].s, ctx->ns[i].s, 
-                                                   ctx->option_tracing != TRUE ? NULL : &nntp_io)) == NULL)) {
+                                                   ctx->option_tracing ? &nntp_io : NULL)) == NULL)) {
             /*fprintf(stderr, "DEBUG: nntp_create failed: %s\n", strerror(errno)); */
             bOk = FALSE;
         }
@@ -631,7 +631,7 @@
      *  RFC1893 2. Status Codes                         5.X.X   Permanent Failure
      *  RFC1893 3.5 Network and Routing Status          X.1.8   Bad sender's system address
      */
-    if (ctx->session.lhlo_seen != TRUE) {
+    if (!ctx->session.lhlo_seen) {
         res.statuscode = "553";
         res.dsncode    = "5.1.8";
         res.statusmsg  = "friendly people say LHLO to open a transmission channel.";
@@ -777,7 +777,7 @@
             lmtp_response(lmtp, &res);
             return LMTP_OK;
         }
-        if (groupmatch(ctx->azGroupargs, ctx->asGroupargs, group) != TRUE) {
+        if (!groupmatch(ctx->azGroupargs, ctx->asGroupargs, group)) {
             res.statuscode = "550";
             res.dsncode    = "5.7.2";
             res.statusmsg  = "unmatched Group.";
@@ -948,7 +948,7 @@
     else { /*                      == GROUPMODE_HEADER */
         cp = ctx->msg->azNewsgroups;
         while (cp != NULL) {
-            if (groupmatch(ctx->azGroupargs, ctx->asGroupargs, cp) != TRUE) {
+            if (!groupmatch(ctx->azGroupargs, ctx->asGroupargs, cp)) {
                 if (argz_next(ctx->msg->azNewsgroups, ctx->msg->asNewsgroups, cp) == NULL) {
                     argz_delete(&ctx->msg->azNewsgroups, &ctx->msg->asNewsgroups, cp);
                     break;

CVSTrac 2.0.1