From adaf3f20d7f781565e665b7547a556a1acac90d3 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 20 Dec 2006 17:13:05 +0000 Subject: [PATCH] Corrected bug reported by gcc -O2 --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/mmc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 7333225..b918f86 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.12.20.170502" +#define Cdrskin_timestamP "2006.12.20.171230" diff --git a/libburn/mmc.c b/libburn/mmc.c index 37bde51..b0d0888 100644 --- a/libburn/mmc.c +++ b/libburn/mmc.c @@ -136,7 +136,7 @@ int mmc_get_nwa(struct burn_drive *d, int trackno, int *lba, int *nwa) memcpy(c.opcode, MMC_TRACK_INFO, sizeof(MMC_TRACK_INFO)); c.opcode[1] = 1; if(trackno<=0) { - if (d->current_profile = 0x1a) /* DVD+RW */ + if (d->current_profile == 0x1a) /* DVD+RW */ c.opcode[5] = 1; else /* mmc5r03c.pdf: valid only for CD, DVD+R, DVD+R DL */ c.opcode[5] = 0xFF; @@ -151,7 +151,7 @@ int mmc_get_nwa(struct burn_drive *d, int trackno, int *lba, int *nwa) + (data[10] << 8) + data[11]; *nwa = (data[12] << 24) + (data[13] << 16) + (data[14] << 8) + data[15]; - if (d->current_profile = 0x1a) { /* DVD+RW */ + if (d->current_profile == 0x1a) { /* DVD+RW */ *nwa = *nwa = 0; } else if (!(data[7]&1)) { /* ts A61106 : MMC-1 Table 142 : NWA_V = NWA Valid Flag */