Reacted on compiler complaint about rev 4779

This commit is contained in:
Thomas Schmitt 2012-07-08 13:54:55 +00:00
parent 82d563127e
commit b42d64b4ad
2 changed files with 14 additions and 8 deletions

View File

@ -863,9 +863,15 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
struct isoburn *o;
struct burn_drive *drive;
char *reasons= NULL, *msg= NULL, *adr= NULL;
enum burn_write_types write_type;
struct stat stbuf;
#ifdef Libisoburn_write_type_autO
/* <<< on its way out */
enum burn_write_types write_type;
#endif /* Libisoburn_write_type_autO */
drive= burn_write_opts_get_drive(opts);
reasons= calloc(1, BURN_REASONS_LEN);
@ -932,6 +938,12 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
goto ex;
}
sprintf(reasons, "%d", (int) write_type);
sprintf(msg, "Write_type = %s\n",
(write_type == BURN_WRITE_SAO ? "SAO" :
(write_type == BURN_WRITE_TAO ? "TAO" : reasons)));
isoburn_msgs_submit(o, 0x00060000, msg, 0, "DEBUG", 0);
#else /* Libisoburn_write_type_autO */
/* The caller is in charge to select the write type */
@ -949,12 +961,6 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
#endif /* ! Libisoburn_write_type_autO */
sprintf(reasons, "%d", (int) write_type);
sprintf(msg, "Write_type = %s\n",
(write_type == BURN_WRITE_SAO ? "SAO" :
(write_type == BURN_WRITE_TAO ? "TAO" : reasons)));
isoburn_msgs_submit(o, 0x00060000, msg, 0, "DEBUG", 0);
#ifdef Hardcoded_cd_rW
/* <<< A70929 : hardcoded CD-RW with fabricated -msinfo */
fprintf(stderr, "Setting write address to LBA %d\n", Hardcoded_cd_rw_nwA);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.07.08.134840"
#define Xorriso_timestamP "2012.07.08.135555"