* Eliminated some gcc-isms
authorArt Cancro <ajc@citadel.org>
Thu, 11 Dec 2008 04:02:31 +0000 (04:02 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 11 Dec 2008 04:02:31 +0000 (04:02 +0000)
citadel/modules/calendar/serv_calendar.c

index 7c0b7c894eb31dd0bcf95de7cac51a70d12189a4..4c9ad42425f172e2845300231a9b7279bb4fa772 100644 (file)
@@ -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;
        }