From 5975703b138de43f64990f75ff6527a14c55c484 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Sat, 27 Mar 2010 17:03:07 -0700 Subject: [PATCH] Fixed some silly compiler warnings. --- SUBinaryDeltaTool.m | 2 +- bsdiff.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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;