Got rid of assert() in options.c by soft means

This commit is contained in:
2006-10-07 14:19:32 +00:00
parent a8921e4f59
commit d252d1fc9b
7 changed files with 72 additions and 19 deletions

View File

@ -375,6 +375,7 @@ void spc_probe_write_modes(struct burn_drive *d)
}
}
/** @return -1 = error */
int spc_block_type(enum burn_block_types b)
{
switch (b) {
@ -400,6 +401,9 @@ int spc_block_type(enum burn_block_types b)
return 12;
case BURN_BLOCK_MODE2_OK:
return 13;
default:
return -1;
}
assert(0);
/* ts A61007 : already prevented in burn_write_opts_set_write_type() */
/* a ssert(0); */;
}