// 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;
// 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;
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