Fixing some casts in order to be able to build with new Xcode and SDK versions (tested with Xcode 7.3, SDK 10.11).
Patch provided by Thomas Schweitzer. BUG= Change-Id: Ib35cdf766e73e4936e66f75474d83c2602f8ceb4 Reviewed-on: https://chromium-review.googlesource.com/378059 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
968c388922
commit
3fef603b65
2 changed files with 8 additions and 4 deletions
|
@ -138,8 +138,12 @@ void DumpFile(const char *filename) {
|
||||||
}
|
}
|
||||||
printf("filename: %s\n", filename);
|
printf("filename: %s\n", filename);
|
||||||
size_t object_files_size;
|
size_t object_files_size;
|
||||||
const struct fat_arch *object_files
|
const SuperFatArch* super_fat_object_files =
|
||||||
= fat_reader.object_files(&object_files_size);
|
fat_reader.object_files(&object_files_size);
|
||||||
|
struct fat_arch *object_files;
|
||||||
|
if (!super_fat_object_files->ConvertToFatArch(object_files)) {
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
printf(" object file count: %ld\n", object_files_size);
|
printf(" object file count: %ld\n", object_files_size);
|
||||||
for (size_t i = 0; i < object_files_size; i++) {
|
for (size_t i = 0; i < object_files_size; i++) {
|
||||||
const struct fat_arch &file = object_files[i];
|
const struct fat_arch &file = object_files[i];
|
||||||
|
|
|
@ -68,8 +68,8 @@ static void Start(Options *options) {
|
||||||
encoding:NSUTF8StringEncoding];
|
encoding:NSUTF8StringEncoding];
|
||||||
|
|
||||||
NSLog(@"Send: %@", error ? [error description] : @"No Error");
|
NSLog(@"Send: %@", error ? [error description] : @"No Error");
|
||||||
NSLog(@"Response: %d", [[ul response] statusCode]);
|
NSLog(@"Response: %ld", (long)[[ul response] statusCode]);
|
||||||
NSLog(@"Result: %d bytes\n%@", [data length], result);
|
NSLog(@"Result: %lu bytes\n%@", (unsigned long)[data length], result);
|
||||||
|
|
||||||
[result release];
|
[result release];
|
||||||
[ul release];
|
[ul release];
|
||||||
|
|
Loading…
Reference in a new issue