summaryrefslogtreecommitdiff
path: root/epggrid.c
diff options
context:
space:
mode:
Diffstat (limited to 'epggrid.c')
-rw-r--r--epggrid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epggrid.c b/epggrid.c
index baf469b..05b3520 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -90,14 +90,14 @@ void cEpgGrid::CreateChannels(const cChannel *startChannel, int activeChannel) {
if (!startChannel)
return;
- const cChannels* chls;
#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cChannels* chls;
{
LOCK_CHANNELS_READ;
chls = Channels;
}
#else
- chls = &Channels;
+ cChannels* chls = &Channels;
#endif
for (const cChannel *channel = startChannel; channel; channel = chls->Next(channel)) {