OSSP CVS Repository

ossp - Check-in [740]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 740
Date: 2001-Aug-23 09:52:25 (local)
2001-Aug-23 07:52:25 (UTC)
User:thl
Branch:
Comment: added NNTP_ERR_UNKNOWN which is useful for injecting artifical errors when debugging
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/nntp.c      1.10 -> 1.11     1 inserted, 0 deleted
ossp-pkg/lmtp2nntp/nntp.h      1.6 -> 1.7     2 inserted, 1 deleted

ossp-pkg/lmtp2nntp/nntp.c 1.10 -> 1.11

--- nntp.c       2001/08/23 07:50:42     1.10
+++ nntp.c       2001/08/23 07:52:25     1.11
@@ -430,6 +430,7 @@
     else if (rc == NNTP_ERR_OVERFLOW) str = "NNTP: buffer overflow";
     else if (rc == NNTP_ERR_POST    ) str = "NNTP: cannot post message";
     else if (rc == NNTP_ERR_INIT    ) str = "NNTP: initialization failed";
+    else if (rc == NNTP_ERR_UNKNOWN ) str = "NNTP: unknown error";
     return str;
 }
 


ossp-pkg/lmtp2nntp/nntp.h 1.6 -> 1.7

--- nntp.h       2001/08/16 15:00:50     1.6
+++ nntp.h       2001/08/23 07:52:25     1.7
@@ -54,7 +54,8 @@
     NNTP_ERR_ARG,
     NNTP_ERR_OVERFLOW,
     NNTP_ERR_POST,
-    NNTP_ERR_INIT
+    NNTP_ERR_INIT,
+    NNTP_ERR_UNKNOWN
 } nntp_rc_t;
 
 nntp_t     *nntp_create   (int, int, nntp_io_t *);

CVSTrac 2.0.1