OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/listserv.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/listserv.c 1.6 -> 1.7

--- listserv.c   2001/01/18 20:30:50     1.6
+++ listserv.c   2001/01/20 14:29:28     1.7
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/listserv.c,v $
-   $Revision: 1.6 $
+   $Revision: 1.7 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -25,8 +25,7 @@
 
 char * g_currLine;              /* pointer to the line currently parsed */
 
-int
-listserv_main(char * incoming_mail, char * default_list)
+void listserv_main(char * incoming_mail, char * default_list)
 {
     const struct List_Config * ListConfig;
     struct Mail *   MailStruct;
@@ -56,11 +55,11 @@
 
     if (MailStruct->Envelope == NULL) {
         syslog(LOG_NOTICE, "Received mail without a valid envelope.");
-        return 0;
+        return;
     }
     if (MailStruct->From == NULL) {
         syslog(LOG_NOTICE, "Received mail without From: line.");
-        return 0;
+        return;
     }
 
     /* Do access control. */
@@ -77,7 +76,7 @@
       case 0:
           break;
       case 1:
-          return 0;
+          return;
     }
 
     /* Parse the body and call the apropriate routines for each
@@ -87,7 +86,7 @@
     if (*g_currLine == '\0') {
         syslog(LOG_NOTICE, "Received mail with empty body.");
         SendHelp(MailStruct, NULL, NULL, default_list);
-        return 0;
+        return;
     }
     for (nextLine = text_find_next_line(g_currLine), junklines = 0, found = 0;
          *g_currLine != '\0' && junklines <= 7;
@@ -147,6 +146,4 @@
             ((MailStruct->Reply_To) ? MailStruct->Reply_To : MailStruct->From));
         Indecipherable(MailStruct, default_list);
     }
-
-    return 0;
 }

CVSTrac 2.0.1