Explorar el Código

Patched to compile on Linux/gcc.

Ryan C. Gordon hace 24 años
padre
commit
ada7128625
Se han modificado 2 ficheros con 6 adiciones y 5 borrados
  1. 2 1
      archivers/unzip.c
  2. 4 4
      test/test_physfs.c

+ 2 - 1
archivers/unzip.c

@@ -140,6 +140,7 @@ typedef struct
 */
 */
 
 
 
 
+#if 0  /* not actually used anymore, at this point. */
 local int unzlocal_getByte(fin,pi)
 local int unzlocal_getByte(fin,pi)
 	void *fin;
 	void *fin;
 	int *pi;
 	int *pi;
@@ -159,7 +160,7 @@ local int unzlocal_getByte(fin,pi)
             return UNZ_ERRNO;
             return UNZ_ERRNO;
     }
     }
 }
 }
-
+#endif
 
 
 /* ===========================================================================
 /* ===========================================================================
    Reads a long in LSB order from the given gz_stream. Sets 
    Reads a long in LSB order from the given gz_stream. Sets 

+ 4 - 4
test/test_physfs.c

@@ -508,8 +508,8 @@ static int cmd_append(char *args)
         PHYSFS_sint64 rc = PHYSFS_write(f, WRITESTR, 1, bw);
         PHYSFS_sint64 rc = PHYSFS_write(f, WRITESTR, 1, bw);
         if (rc != 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 */
         } /* if */
         else
         else
         {
         {
@@ -542,8 +542,8 @@ static int cmd_write(char *args)
         PHYSFS_sint64 rc = PHYSFS_write(f, WRITESTR, 1, bw);
         PHYSFS_sint64 rc = PHYSFS_write(f, WRITESTR, 1, bw);
         if (rc != 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 */
         } /* if */
         else
         else
         {
         {