OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/nntp.c 1.8 -> 1.9

--- nntp.c       2001/08/16 15:00:50     1.8
+++ nntp.c       2001/08/21 07:40:41     1.9
@@ -124,12 +124,12 @@
 
     do {
         if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK) {
-            //fprintf(stderr, "DEBUG: nntp_readline returned ***%d***\n", rc);
+            /*fprintf(stderr, "DEBUG: nntp_readline returned ***%d***\n", rc); */
             return rc;
             }
     } while (line[0] == '1');
 
-    //fprintf(stderr, "DEBUG: nntp_readline got ***%s***\n", line);
+    /*fprintf(stderr, "DEBUG: nntp_readline got ***%s***\n", line); */
 
     /* prepare for the INN kludge using 441 returns for other things but
      * "Duplicate".  Typical welcome string is "200 host InterNetNews NNRP
@@ -137,11 +137,11 @@
      */
     if (str_parse(line, "m/^200.*\\sINN\\s/")) {
         nntp->kludgeinn441dup = TRUE;
-        //fprintf(stderr, "DEBUG: INN kludge activated!\n");
+        /*fprintf(stderr, "DEBUG: INN kludge activated!\n"); */
     }
     else {
         nntp->kludgeinn441dup = FALSE;
-        //fprintf(stderr, "DEBUG: no INN kludge!\n");
+        /*fprintf(stderr, "DEBUG: no INN kludge!\n"); */
     }
 
     if (strncmp(line, "200", 3) == 0)
@@ -205,7 +205,7 @@
     buf[n] = '\0';          /* string termination */
     if (n == (buflen-1)) 
         return NNTP_ERR_OVERFLOW;
-    //fprintf(stderr, "DEBUG: nntp_readline  <<<%s\n", buf);
+    /*fprintf(stderr, "DEBUG: nntp_readline  <<<%s\n", buf); */
     return NNTP_OK;
 }
 
@@ -217,7 +217,7 @@
         return NNTP_ERR_ARG;
     strncpy(tmp, buf, NNTP_LINE_MAXLEN-3);
     strcat(tmp, "\r\n");
-    //fprintf(stderr, "DEBUG: nntp_writeline >>>%s", tmp);
+    /*fprintf(stderr, "DEBUG: nntp_writeline >>>%s", tmp); */
     if (nntp->io.write(nntp->wfd, tmp, strlen(tmp)) < 0)
         return NNTP_ERR_SYSTEM;
     return NNTP_OK;
@@ -327,12 +327,12 @@
     if (strncmp(line, "340", 3) != 0)
         return NNTP_ERR_POST;
 
-    if ((rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg))) < 0) //FIXME while() wrapper around write required
+    if ((rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg))) < 0) /*FIXME while() wrapper around write required */
         return NNTP_ERR_SYSTEM;
 
     if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)
         return rc;
-    //fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(rc));
+    /*fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(rc)); */
 
     if (strncmp(line, "240", 3) == 0)
         return NNTP_OK;
@@ -394,18 +394,18 @@
     if (strncmp(line, "436", 3) == 0)
         return NNTP_DEFER;
 
-    if (   (strncmp(line, "437", 3) == 0) //FIXME style vs. optimization - redundant lines
+    if (   (strncmp(line, "437", 3) == 0) /*FIXME style vs. optimization - redundant lines */
         || (strncmp(line, "480", 3) == 0)
         || (strncmp(line, "335", 3) != 0)
           )
         return NNTP_ERR_POST;
 
-    if ((rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg))) < 0) //FIXME while() wrapper around write required
+    if ((rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg))) < 0) /*FIXME while() wrapper around write required */
         return NNTP_ERR_SYSTEM;
 
     if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)
         return rc;
-    //fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(rc));
+    /*fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(rc)); */
 
     if (strncmp(line, "235", 3) == 0)
         return NNTP_OK;

CVSTrac 2.0.1