From: Art Cancro Date: Thu, 11 Dec 2008 04:02:31 +0000 (+0000) Subject: * Eliminated some gcc-isms X-Git-Tag: v7.86~1727 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0319016e441d4106f7dc0d038479f6cc5e362cd1;hp=87f08c14c5d31bcca509685a8a4fc8af8f221120 * Eliminated some gcc-isms --- diff --git a/citadel/modules/calendar/serv_calendar.c b/citadel/modules/calendar/serv_calendar.c index 7c0b7c894..4c9ad4242 100644 --- a/citadel/modules/calendar/serv_calendar.c +++ b/citadel/modules/calendar/serv_calendar.c @@ -52,8 +52,7 @@ icalcomponent *icalcomponent_new_citadel_vcalendar(void) { encaps = icalcomponent_new_vcalendar(); if (encaps == NULL) { - CtdlLogPrintf(CTDL_CRIT, "Error at %s:%d - could not allocate component!\n", - __FILE__, __LINE__); + CtdlLogPrintf(CTDL_CRIT, "ERROR: could not allocate component!\n"); return NULL; } @@ -1523,8 +1522,7 @@ void ical_getics(void) encaps = icalcomponent_new_vcalendar(); if (encaps == NULL) { - CtdlLogPrintf(CTDL_DEBUG, "Error at %s:%d - could not allocate component!\n", - __FILE__, __LINE__); + CtdlLogPrintf(CTDL_DEBUG, "ERROR: could not allocate component!\n"); cprintf("%d Could not allocate memory\n", ERROR+INTERNAL_ERROR); return; } @@ -1852,8 +1850,7 @@ void ical_send_out_invitations(icalcomponent *top_level_cal, icalcomponent *cal) /* Encapsulate the VEVENT component into a complete VCALENDAR */ encaps = icalcomponent_new_vcalendar(); if (encaps == NULL) { - CtdlLogPrintf(CTDL_DEBUG, "Error at %s:%d - could not allocate component!\n", - __FILE__, __LINE__); + CtdlLogPrintf(CTDL_DEBUG, "ERROR: could not allocate component!\n"); icalcomponent_free(the_request); return; }