From 4146ac1928fc5a60456bb43dccce352b984e57a3 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 22 Nov 2004 16:51:19 +0100 Subject: [PATCH] Removed an unused variable from cTimer::GetWDayFromMDay() --- CONTRIBUTORS | 1 + HISTORY | 5 +++++ config.h | 6 +++--- timers.c | 3 +-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 0ee05623..a940ed70 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1059,6 +1059,7 @@ Wayne Keer cDvbDevice::cDvbDevice() in case a patch references them for suggesting to make the "Channel not available!" message and mtInfo instead of mtError + for reporting an unused variable from cTimer::GetWDayFromMDay() Marco Schlüßler for fixing handling colors in cDvbSpuPalette::yuv2rgb() diff --git a/HISTORY b/HISTORY index 8bb77e92..27a905ba 100644 --- a/HISTORY +++ b/HISTORY @@ -3159,3 +3159,8 @@ Video Disk Recorder Revision History - Fixed toggling the "Day" item in the "Timers" menu, so that it selects the right day of week for timers in the future. - Some improvements to cPoller (thanks to Marco Schlüßler). + +2004-11-22: Version 1.3.18 + +- Removed an unused variable from cTimer::GetWDayFromMDay() (thanks to Wayne Keer + for reporting this one). diff --git a/config.h b/config.h index 212f8781..d13ed2fc 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.205 2004/11/16 16:57:43 kls Exp $ + * $Id: config.h 1.206 2004/11/22 16:49:39 kls Exp $ */ #ifndef __CONFIG_H @@ -20,8 +20,8 @@ #include "i18n.h" #include "tools.h" -#define VDRVERSION "1.3.17" -#define VDRVERSNUM 10317 // Version * 10000 + Major * 100 + Minor +#define VDRVERSION "1.3.18" +#define VDRVERSNUM 10318 // Version * 10000 + Major * 100 + Minor #define MAXPRIORITY 99 #define MAXLIFETIME 99 diff --git a/timers.c b/timers.c index 62f59d84..921a2256 100644 --- a/timers.c +++ b/timers.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.c 1.18 2004/11/21 13:15:33 kls Exp $ + * $Id: timers.c 1.19 2004/11/22 16:49:15 kls Exp $ */ #include "timers.h" @@ -272,7 +272,6 @@ int cTimer::GetWDay(time_t t) int cTimer::GetWDayFromMDay(int MDay) { time_t now = time(NULL); - int md = GetMDay(now); for (int i = -1; i <= 28; i++) { // looking 4 weeks into the future should be enough time_t t0 = IncDay(now, i); if (GetMDay(t0) == MDay)