Permalink
Browse files

Fixed some silly compiler warnings.

  • Loading branch information...
1 parent fb43787 commit 5975703b138de43f64990f75ff6527a14c55c484 @andymatuschak andymatuschak committed Mar 28, 2010
Showing with 3 additions and 1 deletion.
  1. +1 −1 SUBinaryDeltaTool.m
  2. +2 −0 bsdiff.c
View
@@ -224,7 +224,7 @@ int main(int argc, char **argv)
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;
View
@@ -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;

0 comments on commit 5975703

Please sign in to comment.