Commit 597376eb authored by Steven Fuller's avatar Steven Fuller

hack out some gcc 4.0.1 warnings.

parent 9d0ed64d
...@@ -88,7 +88,7 @@ boolean CA_WriteFile(const char *filename, const void *ptr, long length) ...@@ -88,7 +88,7 @@ boolean CA_WriteFile(const char *filename, const void *ptr, long length)
fprintf(stderr, "CA_FarWrite hit EOF?\n"); fprintf(stderr, "CA_FarWrite hit EOF?\n");
return false; return false;
} else if (l != length) { } else if (l != length) {
fprintf(stderr, "CA_FarWrite only wrote %d out of %ld\n", l, length); fprintf(stderr, "CA_FarWrite only wrote %d out of %ld\n", (int)l, length);
return false; return false;
} }
...@@ -128,7 +128,7 @@ boolean CA_LoadFile(const char *filename, memptr *ptr) ...@@ -128,7 +128,7 @@ boolean CA_LoadFile(const char *filename, memptr *ptr)
fprintf(stderr, "CA_FarRead hit EOF?\n"); fprintf(stderr, "CA_FarRead hit EOF?\n");
return false; return false;
} else if (l != size) { } else if (l != size) {
fprintf(stderr, "CA_FarRead only read %d out of %ld\n", l, size); fprintf(stderr, "CA_FarRead only read %d out of %ld\n", (int)l, size);
return false; return false;
} }
......
...@@ -126,7 +126,7 @@ static int32_t CalcFileChecksum(int fd, int len) ...@@ -126,7 +126,7 @@ static int32_t CalcFileChecksum(int fd, int len)
i = len; i = len;
} }
ReadBytes(fd, buf, i); ReadBytes(fd, (byte *)buf, i);
for (j = 0; j < i; j++) { for (j = 0; j < i; j++) {
cs += c1 ^ buf[j]; cs += c1 ^ buf[j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment