Reacted on compiler warnings

This commit is contained in:
Thomas Schmitt 2007-09-04 22:56:50 +00:00
parent 970e2798ba
commit 6841cb68e5
3 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.09.04.224905" #define Cdrskin_timestamP "2007.09.04.225558"

View File

@ -409,6 +409,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
} else { } else {
ret = burn_stdio_read(fd, (char *) d->buffer->data, ret = burn_stdio_read(fd, (char *) d->buffer->data,
cpy_size, d, 0); cpy_size, d, 0);
err = 0;
if (ret <= 0) if (ret <= 0)
err = BE_CANCELLED; err = BE_CANCELLED;
} }

View File

@ -2250,6 +2250,7 @@ int burn_random_access_write(struct burn_drive *d, off_t byte_address,
} else { } else {
ret = burn_stdio_write(fd, (char *) d->buffer->data, ret = burn_stdio_write(fd, (char *) d->buffer->data,
d->buffer->bytes, d, 0); d->buffer->bytes, d, 0);
err = 0;
if (ret <= 0) if (ret <= 0)
err = BE_CANCELLED; err = BE_CANCELLED;
} }