From: Art Cancro Date: Thu, 4 Jan 2024 22:47:35 +0000 (-0500) Subject: serv_calendar.c: basically reformatting for modern standards X-Git-Tag: v997~33 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6ce0d284993145869a896e5790e9b8250203f1c7 serv_calendar.c: basically reformatting for modern standards When I wrote this stuff I had a 109 column screen. Now our standard is 132 columns. Also we are seeking and destroying any place where spaces were used as indentation. Our code is indented with tabs, the way God intended. --- diff --git a/citadel/server/modules/calendar/serv_calendar.c b/citadel/server/modules/calendar/serv_calendar.c index 643212968..13cb1394e 100644 --- a/citadel/server/modules/calendar/serv_calendar.c +++ b/citadel/server/modules/calendar/serv_calendar.c @@ -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