More integration/cleanup. Now uses cdio bytesex.h's BE/LE routines.

copystring -> strdup.

Some int's changed to track_t. But I need to be careful *not* to change
cdda_interface.h.
This commit is contained in:
rocky
2004-12-19 01:43:38 +00:00
parent 81d0304b7e
commit 0c35a965fc
13 changed files with 243 additions and 314 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: cooked_interface.c,v 1.1 2004/12/18 17:29:32 rocky Exp $
$Id: cooked_interface.c,v 1.2 2004/12/19 01:43:38 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
Original interface.c Copyright (C) 1994-1997
@@ -35,7 +35,7 @@ static int
cooked_readtoc (cdrom_drive_t *d)
{
int i;
int tracks;
track_t i_tracks;
struct cdrom_tochdr hdr;
struct cdrom_tocentry entry;
@@ -74,9 +74,9 @@ cooked_readtoc (cdrom_drive_t *d)
d->disc_toc[i].bTrack = entry.cdte_track;
d->disc_toc[i].dwStartSector = entry.cdte_addr.lba;
tracks=hdr.cdth_trk1+1;
d->cd_extra=FixupTOC(d,tracks);
return(--tracks); /* without lead-out */
i_tracks=hdr.cdth_trk1+1;
d->cd_extra=FixupTOC(d,i_tracks);
return(--i_tracks); /* without lead-out */
}