* typedef wcsession, so we don't always need to say gcc again its a struct.
[citadel.git] / webcit / calendar.c
index 58df701806ef0448ad284af6d410cf6e29baa590..30698c816304d994167ed50ba89acb37670356cd 100644 (file)
@@ -374,14 +374,6 @@ void handle_rsvp(void)
 
 
 
-int Flathash(const char *str, long len)
-{
-       if (len != sizeof (int))
-               return 0;
-       else return *(int*)str;
-}
-
-
 
 /*
  * free memory allocated using libical
@@ -405,7 +397,7 @@ void display_individual_cal(icalcomponent *cal, long msgnum, char *from, int unr
        icalproperty *ps = NULL;
        struct icaltimetype dtstart, dtend;
        struct icaldurationtype dur;
-       struct wcsession *WCC = WC;
+       wcsession *WCC = WC;
        disp_cal *Cal;
        size_t len;
        time_t final_recurrence = 0;
@@ -940,7 +932,7 @@ void save_individual_task(icalcomponent *supplied_vtodo, long msgnum, char* from
        }
 
        /** Go back to the task list */
-       readloop("readfwd");
+       readloop(readfwd);
 }
 
 
@@ -1000,18 +992,6 @@ void load_ical_object(long msgnum, int unread,
 
                        cal = icalcomponent_new_from_string(relevant_source);
                        if (cal != NULL) {
-                               /* FIXME temp */
-                               icalproperty *p;
-                               p = icalcomponent_get_first_property(cal, ICAL_DTSTART_PROPERTY);
-                               if (p) {
-                                       lprintf(9, "DTSTART IS %s\n", 
-                                               icaltime_as_ical_string(
-                                                       icalproperty_get_dtstart(p)
-                                               )
-                                       );
-                               }
-                               /* */
-
 
                                /* A which_kind of (-1) means just load the whole thing */
                                if (which_kind == (-1)) {
@@ -1124,7 +1104,8 @@ void save_event(void) {
        msgnum = lbstr("msgnum");
 
        if (msgnum > 0L) {
-               load_ical_object(msgnum, 0, ICAL_VEVENT_COMPONENT, save_individual_event, NULL);
+               /* load_ical_object(msgnum, 0, ICAL_VEVENT_COMPONENT, save_individual_event, NULL); */
+               load_ical_object(msgnum, 0, (-1), save_individual_event, NULL);
        }
        else {
                save_individual_event(NULL, 0L, "", 0, NULL);