Skip to content

Commit

Permalink
Patched to compile on Linux/gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 5, 2002
1 parent d143590 commit ada7128
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion archivers/unzip.c
Expand Up @@ -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;
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/test_physfs.c
Expand Up @@ -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, printf("Wrote (%d) of (%d) bytes. Reason: [%s].\n",
PHYSFS_getLastError()); (int) rc, (int) bw, PHYSFS_getLastError());
} /* if */ } /* if */
else else
{ {
Expand Down Expand Up @@ -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, printf("Wrote (%d) of (%d) bytes. Reason: [%s].\n",
PHYSFS_getLastError()); (int) rc, (int) bw, PHYSFS_getLastError());
} /* if */ } /* if */
else else
{ {
Expand Down

0 comments on commit ada7128

Please sign in to comment.