Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed some DOS newlines.
  • Loading branch information
icculus committed Jul 10, 2017
1 parent 3324ec8 commit 2dbd784
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/archiver_iso9660.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand All @@ -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);

Expand All @@ -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,
Expand Down

0 comments on commit 2dbd784

Please sign in to comment.