From ada7128625cddb172c225b77b7e80afec3d6652c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 5 Apr 2002 18:20:51 +0000 Subject: [PATCH] Patched to compile on Linux/gcc. --- archivers/unzip.c | 3 ++- test/test_physfs.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/archivers/unzip.c b/archivers/unzip.c index aa2b63de..6bec97ff 100644 --- a/archivers/unzip.c +++ b/archivers/unzip.c @@ -140,6 +140,7 @@ typedef struct */ +#if 0 /* not actually used anymore, at this point. */ local int unzlocal_getByte(fin,pi) void *fin; int *pi; @@ -159,7 +160,7 @@ local int unzlocal_getByte(fin,pi) return UNZ_ERRNO; } } - +#endif /* =========================================================================== Reads a long in LSB order from the given gz_stream. Sets diff --git a/test/test_physfs.c b/test/test_physfs.c index 208a1095..2182d457 100644 --- a/test/test_physfs.c +++ b/test/test_physfs.c @@ -508,8 +508,8 @@ static int cmd_append(char *args) PHYSFS_sint64 rc = PHYSFS_write(f, WRITESTR, 1, bw); if (rc != bw) { - printf("Wrote (%d) of (%d) bytes. Reason: [%s].\n", rc, bw, - PHYSFS_getLastError()); + printf("Wrote (%d) of (%d) bytes. Reason: [%s].\n", + (int) rc, (int) bw, PHYSFS_getLastError()); } /* if */ else { @@ -542,8 +542,8 @@ static int cmd_write(char *args) PHYSFS_sint64 rc = PHYSFS_write(f, WRITESTR, 1, bw); if (rc != bw) { - printf("Wrote (%d) of (%d) bytes. Reason: [%s].\n", rc, bw, - PHYSFS_getLastError()); + printf("Wrote (%d) of (%d) bytes. Reason: [%s].\n", + (int) rc, (int) bw, PHYSFS_getLastError()); } /* if */ else {