wapd-0.7a for vdr-1.3.23

Message ID 42583677.8090408@gmail.com
State New
Headers

Commit Message

Anssi Hannula April 9, 2005, 8:09 p.m. UTC
  Hi!

This patch enables wapd-0.7a to compile under vdr-1.3.23.
To be honest, I didn't quite understand the changed functionality, so 
someone might want to confirm that the patch is correct ;)
  

Patch

--- wapd-0.7a-old/server.c	2005-02-19 13:08:05.000000000 +0200
+++ wapd-0.7a/server.c	2005-04-09 22:57:15.000000000 +0300
@@ -481,7 +481,11 @@  void cWapServer::EditTimer(void)
            flags = timer->Active() ? 1 : 0;
 #endif
            channel_nr = timer->Channel()->Number();
+#if VDRVERSNUM >= 10323
+           day = strdup(timer->PrintDay(0, timer->WeekDays()));
+#else
            day = strdup(timer->PrintDay(timer->Day()));
+#endif
            start = timer->Start();
            stop = timer->Stop();
            priority = timer->Priority();
@@ -956,7 +960,9 @@  void cWapServer::PageTimers(void)
                  timer->Stop() / 100,
                  timer->Stop() % 100,
                  timer->Channel()->Number(),
-#if VDRVERSNUM >= 10318
+#if VDRVERSNUM >= 10323
+                 *timer->PrintDay(0, timer->WeekDays()),
+#elif VDRVERSNUM >= 10318
                  *timer->PrintDay(timer->Day()),
 #else
                  timer->PrintDay(timer->Day()),