diff --git a/SUBinaryDeltaTool.m b/SUBinaryDeltaTool.m index 78bfe300..2aa93a42 100644 --- a/SUBinaryDeltaTool.m +++ b/SUBinaryDeltaTool.m @@ -224,7 +224,7 @@ usage: id value = [newTreeState valueForKey:key]; if ([value isEqual:[NSNull null]]) { - xar_file_t newFile = xar_add_frombuffer(x, 0, [key fileSystemRepresentation], "", 1); + xar_file_t newFile = xar_add_frombuffer(x, 0, [key fileSystemRepresentation], (char *)"", 1); assert(newFile); xar_prop_set(newFile, "delete", "true"); continue; diff --git a/bsdiff.c b/bsdiff.c index 40818200..55e30fe4 100644 --- a/bsdiff.c +++ b/bsdiff.c @@ -247,6 +247,8 @@ static void offtout(off_t x, u_char *buf) buf[7] |= 0x80; } +int bsdiff(int argc, char *argv[]); // Added by AMM: suppresses a warning about the following not having a prototype. + int bsdiff(int argc, char *argv[]) { int fd;