Reacted on warnings of cppcheck about libisoburn/burn_wrap.c

This commit is contained in:
Thomas Schmitt 2011-07-15 08:31:22 +00:00
parent e3b025e3e2
commit ce12275556
2 changed files with 12 additions and 2 deletions

View File

@ -344,7 +344,7 @@ int isoburn_is_intermediate_dvd_rw(struct burn_drive *d, int flag)
static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d, static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
int flag) int flag)
{ {
int ret, lba, nwa, profile, readonly= 0, role, random_access; int ret, profile, readonly= 0, role, random_access;
int emulation_started= 0; int emulation_started= 0;
struct burn_multi_caps *caps= NULL; struct burn_multi_caps *caps= NULL;
struct isoburn_toc_entry *t; struct isoburn_toc_entry *t;
@ -356,6 +356,10 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
char msg[80]; char msg[80];
enum burn_disc_status s; enum burn_disc_status s;
#ifndef Hardcoded_cd_rW
int lba, nwa;
#endif
s= burn_disc_get_status(d); s= burn_disc_get_status(d);
profile_name[0]= 0; profile_name[0]= 0;
ret= burn_disc_get_profile(d, &profile, profile_name); ret= burn_disc_get_profile(d, &profile, profile_name);
@ -417,7 +421,13 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
/* >>> recognize unsuitable media (but allow read-only media) */; /* >>> recognize unsuitable media (but allow read-only media) */;
if(readonly && s != BURN_DISC_EMPTY) { if(readonly && s != BURN_DISC_EMPTY) {
/* >>> ts B10712: This maps BURN_DISC_UNSUITABLE to BURN_DISC_FULL
which can hardly be correct in general.
??? What reason does this have ?
*/
(*o)->fabricated_disc_status= BURN_DISC_FULL; (*o)->fabricated_disc_status= BURN_DISC_FULL;
/* This might be overwriteable media in a -ROM drive. /* This might be overwriteable media in a -ROM drive.
Pitfall: Pitfall:
Multi-session media which bear a xorriso image for overwriteables Multi-session media which bear a xorriso image for overwriteables

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.07.12.135452" #define Xorriso_timestamP "2011.07.15.083052"