From d5f121ccc8aa9cd8a48e0783496440c8ffe73315 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 --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/drive.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 8ce1b606..7b62cb7b 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.08.17.160854" +#define Cdrskin_timestamP "2011.08.17.162201" diff --git a/libburn/trunk/libburn/drive.c b/libburn/trunk/libburn/drive.c index 2491bbd4..19d2b1ed 100644 --- a/libburn/trunk/libburn/drive.c +++ b/libburn/trunk/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)