stable now but there are GIANT PIECES MISSING
[citadel.git] / citadel / modules / rssclient / serv_rssclient.c
index 7af7b510398c7e1f05deb9ab8dd9dcad52f0853d..e8098e91c9c56e9d19f2812cf4d21e167f69cfe2 100644 (file)
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#include <sys/time.h>
-# else
 #include <time.h>
-# endif
-#endif
-
 #include <ctype.h>
 #include <string.h>
 #include <errno.h>
@@ -180,7 +169,7 @@ void rss_end_element(void *data, const char *el)
                                long msgnum = (-1);
                                for (rr=r->rooms; rr!=NULL; rr=rr->next) {
                                        if (rr == r->rooms) {
-                                               msgnum = CtdlSubmitMsg(r->msg, NULL, rr->room, 0);      // in first room, save msg
+                                               msgnum = CtdlSubmitMsg(r->msg, NULL, rr->room);         // in first room, save msg
                                        }
                                        else {
                                                CtdlSaveMsgPointerInRoom(rr->room, msgnum, 0, NULL);    // elsewhere, save a pointer
@@ -467,4 +456,3 @@ CTDL_MODULE_INIT(rssclient)
        }
        return "rssclient";
 }
-