File epgsearch-0.9.24-const.diff of Package vdr-plugin-epgsearch

Index: epgsearch-0.9.24/epgsearchsvdrp.c
===================================================================
--- epgsearch-0.9.24.orig/epgsearchsvdrp.c
+++ epgsearch-0.9.24/epgsearchsvdrp.c
@@ -742,7 +742,8 @@ cString cPluginEpgsearch::SVDRPCommand(c
    {
       if (*Option) 
       {
-         char* pipePos = strchr(Option, '|');
+         // XXX
+         char* pipePos = strchr(const_cast<char*>(Option), '|');
          if (pipePos)
          {
             *pipePos = 0;
Index: epgsearch-0.9.24/epgsearchtools.c
===================================================================
--- epgsearch-0.9.24.orig/epgsearchtools.c
+++ epgsearch-0.9.24/epgsearchtools.c
@@ -743,7 +743,7 @@ char* GetRawDescription(const char* desc
    while(tmp)
    {
       // extract a single line
-      char* lf = strchr(tmp, '\n');
+      const char* lf = strchr(tmp, '\n');
       char* line = NULL;
       if (lf)
 	line = strndup(tmp, lf-tmp);
Index: epgsearch-0.9.24/menu_dirselect.c
===================================================================
--- epgsearch-0.9.24.orig/menu_dirselect.c
+++ epgsearch-0.9.24/menu_dirselect.c
@@ -83,7 +83,7 @@ int cMenuDirSelect::Level(const char* sz
 	return 1;
     do
     {
-	char* pos = strchr(szDir, '~');
+	const char* pos = strchr(szDir, '~');
 	if (pos)
 	{
 	    iLevel++;
Index: epgsearch-0.9.24/searchtimer_thread.c
===================================================================
--- epgsearch-0.9.24.orig/searchtimer_thread.c
+++ epgsearch-0.9.24/searchtimer_thread.c
@@ -565,8 +565,8 @@ char* cSearchTimerThread::SummaryExtende
    if (!isempty(aux))
    {
       tmpaux = strdup(aux);
-      char* begin = strstr(aux, "<epgsearch>");
-      char* end = strstr(aux, "</epgsearch>");
+      const char* begin = strstr(aux, "<epgsearch>");
+      const char* end = strstr(aux, "</epgsearch>");
       if (begin && end)
       {
          if (begin == aux) strcpy(tmpaux, ""); else strn0cpy(tmpaux, aux, begin-aux+1);
openSUSE Build Service is sponsored by