radio-0.2.5 compile error

Message ID 20100607091102.7469a032@sidux-cheffe
State New
Headers

Commit Message

Uwe Hanke June 7, 2010, 7:11 a.m. UTC
  Hi,

it has been fixed in vdr-radio version 0.9x:
http://egal-vdr.de/plugins/in_progress/vdr-radio-0.9.0pre.tgz

or attached patch, thx to zzam@vdr-portal.

Cheers,
Uwe


Am Mon, 7 Jun 2010 18:41:28 +1200
schrieb "Simon Baxter" <linuxtv@nzbaxters.com>:

> Hi
> 
> Under vdr-1.7.15 I'm getting this compile error:
> [root@localhost radio]# make
> g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -fPIC -c
> -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"radio"' -I../../../include
> -I/include radioepg.c radioepg.c: In function 'int epg_premiere(const
> char*, const char*, time_t, time_t)':
> radioepg.c:26: error: invalid conversion from 'const char*' to 'char*'
> radioepg.c:31: error: invalid conversion from 'const char*' to 'char*'
> radioepg.c:42: error: invalid conversion from 'const char*' to 'char*'
> radioepg.c:55: error: invalid conversion from 'const char*' to 'char*'
> radioepg.c:60: error: invalid conversion from 'const char*' to 'char*'
> radioepg.c:72: error: invalid conversion from 'const char*' to 'char*'
> radioepg.c:90: error: invalid conversion from 'const char*' to 'char*'
> radioepg.c: In function 'int epg_kdg(const char*, time_t, time_t)':
> radioepg.c:157: error: invalid conversion from 'const char*' to
> 'char*' radioepg.c:168: error: invalid conversion from 'const char*'
> to 'char*' radioepg.c:179: error: invalid conversion from 'const
> char*' to 'char*' radioepg.c:190: error: invalid conversion from
> 'const char*' to 'char*' radioepg.c: In function 'int
> epg_unitymedia(const char*, const char*, time_t, time_t)':
> radioepg.c:257: error: invalid conversion from 'const char*' to
> 'char*' radioepg.c:260: error: invalid conversion from 'const char*'
> to 'char*' make: *** [radioepg.o] Error 1
> 
> Any ideas? 
> 
> 
> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
  

Comments

Linux TV June 7, 2010, 6:39 p.m. UTC | #1
> Hi,
> 
> it has been fixed in vdr-radio version 0.9x:
> http://egal-vdr.de/plugins/in_progress/vdr-radio-0.9.0pre.tgz
> 
> or attached patch, thx to zzam@vdr-portal.
> 


Thanks!
  

Patch

diff -ur radio-0.2.4.orig/radioepg.c radio-0.2.4/radioepg.c
--- radio-0.2.4.orig/radioepg.c	2007-10-09 18:45:26.000000000 +0300
+++ radio-0.2.4/radioepg.c	2009-08-08 22:50:46.000000000 +0300
@@ -12,7 +12,7 @@ 
 int epg_premiere(const char *epgtitle, const char *epgdescr, time_t epgstart, time_t epgend) 
 {
 	int i;
-	char *p;
+	const char *p;
 	char artist[RT_MEL], titel[RT_MEL], album[RT_MEL], jahr[RT_MEL];
 	struct tm tm_store;
 
@@ -143,7 +143,7 @@ 
 int epg_kdg(const char *epgdescr, time_t epgstart, time_t epgend) 
 {
 	int i;
-	char *p;
+	const char *p;
 	char artist[RT_MEL], titel[RT_MEL], album[RT_MEL], komp[RT_MEL];
 	struct tm tm_store;
 
@@ -240,7 +240,7 @@ 
 int epg_unitymedia(const char *epgtitle, const char *epgdescr, time_t epgstart, time_t epgend) 
 {
 	int i;
-	char *p1, *p2;
+	const char *p1, *p2;
 	char  titel[2*RT_MEL], artist[2*RT_MEL];
 	struct tm tm_store;