serv_calendar.c: basically reformatting for modern standards
[citadel.git] / citadel / server / modules / calendar / serv_calendar.c
index 643212968f3976a3d02e5296eafbd39e87edaecc..13cb1394ee61f980931749bab0e89a427efa1458 100644 (file)
@@ -454,8 +454,9 @@ void ical_merge_attendee_reply(icalcomponent *event, icalcomponent *reply) {
        // recurse through subcomponents until we find one.
        if (icalcomponent_isa(event) != ICAL_VEVENT_COMPONENT) {
                for (c = icalcomponent_get_first_component(event, ICAL_VEVENT_COMPONENT);
-                   c != NULL;
-                   c = icalcomponent_get_next_component(event, ICAL_VEVENT_COMPONENT) ) {
+                       c != NULL;
+                       c = icalcomponent_get_next_component(event, ICAL_VEVENT_COMPONENT)
+               ) {
                        ical_merge_attendee_reply(c, reply);
                }
                return;
@@ -464,8 +465,9 @@ void ical_merge_attendee_reply(icalcomponent *event, icalcomponent *reply) {
        // Now do the same thing with the reply.
        if (icalcomponent_isa(reply) != ICAL_VEVENT_COMPONENT) {
                for (c = icalcomponent_get_first_component(reply, ICAL_VEVENT_COMPONENT);
-                   c != NULL;
-                   c = icalcomponent_get_next_component(reply, ICAL_VEVENT_COMPONENT) ) {
+                       c != NULL;
+                       c = icalcomponent_get_next_component(reply, ICAL_VEVENT_COMPONENT)
+               ) {
                        ical_merge_attendee_reply(event, c);
                }
                return;
@@ -490,9 +492,7 @@ STARTOVER:
                        e = icalproperty_get_attendee(e_attendee);
                        r = icalproperty_get_attendee(r_attendee);
 
-                       if ((e != NULL) && 
-                           (r != NULL) && 
-                           !strcasecmp(e, r)) {
+                       if ((e != NULL) && (r != NULL) && !strcasecmp(e, r)) {
                                // ...and if they do, remove the attendee from the event
                                // and replace it with the attendee from the reply.  (The
                                // reply's copy will have the same address, but an updated