]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar_tools.c
* Get ready for the 6.10 release
[citadel.git] / webcit / calendar_tools.c
index 85c348ce00f9e6381303f0f002220640267102f0..dfc97f3bc3271e52b0ca030cb72a8f595bb29833 100644 (file)
@@ -43,7 +43,7 @@ char *hourname[] = {
        "7pm", "8pm", "9pm", "10pm", "11pm"
 };
 
-#ifdef HAVE_ICAL_H
+#ifdef WEBCIT_WITH_CALENDAR_SERVICE
 
 /*
  * The display_icaltimetype_as_webform() and icaltime_from_webform() functions
@@ -199,22 +199,31 @@ void partstat_as_string(char *buf, icalproperty *attendee) {
        switch(partstat) {
                case ICAL_PARTSTAT_X:
                        strcpy(buf, "(x)");
+                       break;
                case ICAL_PARTSTAT_NEEDSACTION:
                        strcpy(buf, "(needs action)");
+                       break;
                case ICAL_PARTSTAT_ACCEPTED:
                        strcpy(buf, "(accepted)");
+                       break;
                case ICAL_PARTSTAT_DECLINED:
                        strcpy(buf, "(declined)");
+                       break;
                case ICAL_PARTSTAT_TENTATIVE:
                        strcpy(buf, "(tenative)");
+                       break;
                case ICAL_PARTSTAT_DELEGATED:
                        strcpy(buf, "(delegated)");
+                       break;
                case ICAL_PARTSTAT_COMPLETED:
                        strcpy(buf, "(completed)");
+                       break;
                case ICAL_PARTSTAT_INPROCESS:
                        strcpy(buf, "(in process)");
+                       break;
                case ICAL_PARTSTAT_NONE:
                        strcpy(buf, "(none)");
+                       break;
        }
 }