summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-06-06 13:48:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-06-06 13:48:41 +0200
commit1d03f30e93194ef2cd27d613ed00409dbc54c95e (patch)
tree959c510e4d3d78cb95cfad6b0a94ddba5d132466 /recording.c
parent96d25c3be1ead9d1ecd6e1ffadfb57aa42b22c2b (diff)
downloadvdr-1d03f30e93194ef2cd27d613ed00409dbc54c95e.tar.gz
vdr-1d03f30e93194ef2cd27d613ed00409dbc54c95e.tar.bz2
Added some missing 'const' keywords to avoid compilation errors with gcc 4.4
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/recording.c b/recording.c
index e33d20bc..28a93a6a 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.13 2009/05/24 15:11:28 kls Exp $
+ * $Id: recording.c 2.14 2009/06/06 13:39:40 kls Exp $
*/
#include "recording.h"
@@ -623,8 +623,8 @@ cRecording::cRecording(cTimer *Timer, const cEvent *Event)
Utf8Strn0Cpy(SubtitleBuffer, Subtitle, MAX_SUBTITLE_LENGTH);
Subtitle = SubtitleBuffer;
}
- char *macroTITLE = strstr(Timer->File(), TIMERMACRO_TITLE);
- char *macroEPISODE = strstr(Timer->File(), TIMERMACRO_EPISODE);
+ const char *macroTITLE = strstr(Timer->File(), TIMERMACRO_TITLE);
+ const char *macroEPISODE = strstr(Timer->File(), TIMERMACRO_EPISODE);
if (macroTITLE || macroEPISODE) {
name = strdup(Timer->File());
name = strreplace(name, TIMERMACRO_TITLE, Title);
@@ -673,7 +673,7 @@ cRecording::cRecording(const char *FileName)
sortBuffer = NULL;
fileName = strdup(FileName);
FileName += strlen(VideoDirectory) + 1;
- char *p = strrchr(FileName, '/');
+ const char *p = strrchr(FileName, '/');
name = NULL;
info = new cRecordingInfo;