Note TOC's initialized so we don't reread. Add some int's to unsigned.

This commit is contained in:
rocky
2003-09-01 15:11:36 +00:00
parent 16f103e8e6
commit 833bc3d21d
4 changed files with 19 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: _cdio_sunos.c,v 1.14 2003/07/27 22:52:22 rocky Exp $
$Id: _cdio_sunos.c,v 1.15 2003/09/01 15:11:36 rocky Exp $
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2002,2003 Rocky Bernstein <rocky@panix.com>
@@ -35,7 +35,7 @@
#ifdef HAVE_SOLARIS_CDROM
static const char _rcsid[] = "$Id: _cdio_sunos.c,v 1.14 2003/07/27 22:52:22 rocky Exp $";
static const char _rcsid[] = "$Id: _cdio_sunos.c,v 1.15 2003/09/01 15:11:36 rocky Exp $";
#include <stdio.h>
#include <stdlib.h>
@@ -340,7 +340,7 @@ _cdio_read_audio_sector (void *user_data, void *data, lsn_t lsn)
*/
static int
_cdio_read_mode2_sectors (void *user_data, void *data, uint32_t lsn,
bool mode2_form2, unsigned nblocks)
bool mode2_form2, unsigned int nblocks)
{
_img_private_t *_obj = user_data;
int i;
@@ -460,6 +460,7 @@ _cdio_read_toc (_img_private_t *_obj)
return false;
}
_obj->gen.toc_init = true;
return true;
}