Monotone-Parent: 94ff9caef87cde7157655b9f398a4481c6bf5b72

Monotone-Revision: 93bb2c6945d08d009e60e0b6280976b86b0b0aaf

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-06-03T23:06:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-06-03 23:06:52 +00:00
parent 7737073752
commit 459ab3484e
12 changed files with 57 additions and 39 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ static NSString *LDAPContactInfoAttribute = nil;
interval = [endDate timeIntervalSinceDate: startDate] + 60;
intervals = interval / intervalSeconds; /* slices of 15 minutes */
freeBusyItems = calloc (intervals, sizeof (int));
freeBusyItems = NSZoneCalloc (NULL, intervals, sizeof (int));
[self _fillFreeBusyItems: freeBusyItems count: intervals
withRecords: [fb fetchFreeBusyInfosFrom: startDate to: endDate]
fromStartDate: startDate toEndDate: endDate];
@@ -192,7 +192,7 @@ static NSString *LDAPContactInfoAttribute = nil;
for (count = 0; count < intervals; count++)
[response appendFormat: @"%d,", *(freeBusyItems + count)];
[response deleteCharactersInRange: NSMakeRange (intervals * 2 - 1, 1)];
free (freeBusyItems);
NSZoneFree (NULL, freeBusyItems);
return response;
}