From d07370932886851f2f40a6b9651d7ae89a7c4be9 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 17 Aug 2011 16:22:14 +0000 Subject: [PATCH] Reacted on compiler warning about previous revision --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/drive.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 8ce1b60..7b62cb7 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.08.17.160854" +#define Cdrskin_timestamP "2011.08.17.162201" diff --git a/libburn/drive.c b/libburn/drive.c index 2491bbd..19d2b1e 100644 --- a/libburn/drive.c +++ b/libburn/drive.c @@ -1469,10 +1469,10 @@ static int burn_drive__is_rdwr(char *fname, int *stat_ret, st_ret = stat(fname, &stbuf); if (st_ret != -1) { is_rdwr = burn_os_is_2k_seekrw(fname, 0); - if (S_ISREG(stbuf.st_mode)) { + ret = 1; + if (S_ISREG(stbuf.st_mode)) read_size = stbuf.st_size; - ret = 1; - } else if (is_rdwr) + else if (is_rdwr) ret = burn_os_stdio_capacity(fname, &read_size); if (ret <= 0 || read_size / (off_t) 2048 >= (off_t) 0x7ffffff0)