From 79de9414ada9b15d2346595501fecb01ce5a1ec6 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Thu, 9 Oct 2014 17:00:06 +0000 Subject: Fix formatting for OS X 10.4 to avoid usage of %z and %t. Change stringWithContentsOfFile to explicitly specify the encoding (again, 10.4 fix) DELTA=85 (4 added, 2 deleted, 79 changed) DELTA_BY_EXTENSION=c=3,m=80 --- Foundation/GTMServiceManagement.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Foundation') diff --git a/Foundation/GTMServiceManagement.c b/Foundation/GTMServiceManagement.c index efdc68e..9027f43 100644 --- a/Foundation/GTMServiceManagement.c +++ b/Foundation/GTMServiceManagement.c @@ -193,8 +193,8 @@ launch_data_t GTMLaunchDataCreateFromCFType(CFTypeRef cf_type_ref, free(buffer); } else { local_error = GTMCFLaunchCreateUnlocalizedError(ENOMEM, - CFSTR("calloc of %zu failed"), - buffer_size); + CFSTR("calloc of %lu failed"), + (unsigned long)buffer_size); } } else if (cf_type == CFBooleanGetTypeID()) { result = launch_data_alloc(LAUNCH_DATA_BOOL); @@ -278,7 +278,7 @@ launch_data_t GTMLaunchDataCreateFromCFType(CFTypeRef cf_type_ref, local_error = GTMCFLaunchCreateUnlocalizedError(EINVAL, CFSTR("Unknown CFTypeID %lu"), - cf_type); + (unsigned long)cf_type); } exit: -- cgit v1.2.3