diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-14 13:53:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-14 13:53:38 +0100 |
commit | 6715f4048407bb4db430f3181d29ee71a9069653 (patch) | |
tree | 1e8cbaa65e56969b62e29340d8b844987737090a /recording.c | |
parent | 17485ccc96a2c562ba947070acc0a77be2b7db9c (diff) | |
download | vdr-6715f4048407bb4db430f3181d29ee71a9069653.tar.gz vdr-6715f4048407bb4db430f3181d29ee71a9069653.tar.bz2 |
Added some missing 'const' keywords to avoid compilation errors with gcc 4.4 (backport from version 1.7.8)
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recording.c b/recording.c index 1535b46b..e74fc839 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 1.162 2008/02/24 10:28:53 kls Exp $ + * $Id: recording.c 1.162.1.1 2012/02/14 13:47:29 kls Exp $ */ #include "recording.h" @@ -509,8 +509,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); @@ -551,7 +551,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; |