Fixed some silly compiler warnings.

This commit is contained in:
Andy Matuschak committed 2010-03-27 17:03:07 -07:00
1 parent fb43787317
commit 5975703b13
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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;
+2
View File
@@ -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;