Patched to compile on Linux/gcc.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 05 Apr 2002 18:20:51 +0000
changeset 182 a47c39af46ad
parent 181 b430920f6bd4
child 183 352d940a99d0
Patched to compile on Linux/gcc.
archivers/unzip.c
test/test_physfs.c
--- a/archivers/unzip.c	Fri Apr 05 18:16:12 2002 +0000
+++ b/archivers/unzip.c	Fri Apr 05 18:20:51 2002 +0000
@@ -140,6 +140,7 @@
 */
 
 
+#if 0  /* not actually used anymore, at this point. */
 local int unzlocal_getByte(fin,pi)
 	void *fin;
 	int *pi;
@@ -159,7 +160,7 @@
             return UNZ_ERRNO;
     }
 }
-
+#endif
 
 /* ===========================================================================
    Reads a long in LSB order from the given gz_stream. Sets 
--- a/test/test_physfs.c	Fri Apr 05 18:16:12 2002 +0000
+++ b/test/test_physfs.c	Fri Apr 05 18:20:51 2002 +0000
@@ -508,8 +508,8 @@
         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 @@
         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
         {