From f5603c75195902ecefdb200742c48d0dfb52c9f6 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 8 Oct 2006 10:24:50 +0000 Subject: [PATCH] Got rid of assert() in to.c by soft means --- libburn/toc.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libburn/toc.c b/libburn/toc.c index 8d0d3fd..c1c198c 100644 --- a/libburn/toc.c +++ b/libburn/toc.c @@ -1,6 +1,8 @@ /* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ -#include +/* ts A61008 */ +/* #include */ + #include #include #include @@ -51,7 +53,10 @@ static void write_clonecd2(volatile struct toc *toc, int f) case BURN_MODE2_FORM1: case BURN_MODE2_FORM2: case BURN_MODE_UNINITIALIZED: - assert(0); /* unhandled! find out ccd's + + /* ts A61008 : do this softly without Assert */ + + a ssert(0); /* unhandled! find out ccd's value for these modes! */ } dprintf(f, "PreGapMode=%d\r\n", m); @@ -95,7 +100,8 @@ void toc_find_modes(struct burn_drive *d) struct buffer mem; struct burn_toc_entry *e; - assert(d->busy); + /* ts A61008 : to be prevented on the higher levels */ + /* a ssert(d->busy); */ mem.bytes = 0; mem.sectors = 1;