From 2dbd784cc188f9846d0ed381baa5fc8dcfeeea0b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 9 Jul 2017 20:45:34 -0400 Subject: [PATCH] Fixed some DOS newlines. --- src/archiver_iso9660.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/archiver_iso9660.c b/src/archiver_iso9660.c index 685b469..f01922f 100644 --- a/src/archiver_iso9660.c +++ b/src/archiver_iso9660.c @@ -256,8 +256,8 @@ static int iso_atoi4(char *text) } /* iso_atoi4 */ static PHYSFS_sint64 iso_volume_mktime(ISO9660VolumeTimestamp *timestamp) -{ - PHYSFS_sint64 value; +{ + PHYSFS_sint64 value; struct tm tm; tm.tm_year = iso_atoi4(timestamp->year); tm.tm_mon = iso_atoi2(timestamp->month) - 1; @@ -344,8 +344,8 @@ static int iso_extractfilename(ISO9660Handle *handle, static int iso_readimage(ISO9660Handle *handle, PHYSFS_uint64 where, void *buffer, PHYSFS_uint64 len) -{ - int rc = -1; +{ + int rc = -1; BAIL_IF_ERRPASS(!__PHYSFS_platformGrabMutex(handle->mutex), -1); if (where != handle->currpos) GOTO_IF_ERRPASS(!handle->io->seek(handle->io,where), unlockme); @@ -688,8 +688,8 @@ static void iso_file_close_mem(ISO9660FileHandle *fhandle) static PHYSFS_uint32 iso_file_read_foreign(ISO9660FileHandle *filehandle, void *buffer, PHYSFS_uint64 len) { - PHYSFS_sint64 rc; - + PHYSFS_sint64 rc; + /* check remaining bytes & max obj which can be fetched */ const PHYSFS_sint64 bytesleft = filehandle->filesize - filehandle->currpos; if (bytesleft < len) @@ -706,9 +706,9 @@ static PHYSFS_uint32 iso_file_read_foreign(ISO9660FileHandle *filehandle, static int iso_file_seek_foreign(ISO9660FileHandle *fhandle, PHYSFS_sint64 offset) -{ - PHYSFS_sint64 pos; - +{ + PHYSFS_sint64 pos; + BAIL_IF(offset < 0, PHYSFS_ERR_INVALID_ARGUMENT, 0); BAIL_IF(offset >= fhandle->filesize, PHYSFS_ERR_PAST_EOF, 0); @@ -728,8 +728,8 @@ static void iso_file_close_foreign(ISO9660FileHandle *fhandle) static int iso_file_open_mem(ISO9660Handle *handle, ISO9660FileHandle *fhandle) -{ - int rc; +{ + int rc; fhandle->cacheddata = allocator.Malloc(fhandle->filesize); BAIL_IF(!fhandle->cacheddata, PHYSFS_ERR_OUT_OF_MEMORY, -1); rc = iso_readimage(handle, fhandle->startblock * 2048,