Added some missing 'const' keywords to avoid compilation errors with gcc 4.4

This commit is contained in:
Klaus Schmidinger
2009-06-06 13:48:41 +02:00
parent 96d25c3be1
commit 1d03f30e93
4 changed files with 10 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
* $Id: svdrp.c 2.3 2009/04/13 13:35:29 kls Exp $
* $Id: svdrp.c 2.4 2009/06/06 13:42:52 kls Exp $
*/
#include "svdrp.h"
@@ -739,7 +739,7 @@ void cSVDRP::CmdGRAB(const char *Option)
char *strtok_next;
FileName = strtok_r(p, delim, &strtok_next);
// image type:
char *Extension = strrchr(FileName, '.');
const char *Extension = strrchr(FileName, '.');
if (Extension) {
if (strcasecmp(Extension, ".jpg") == 0 || strcasecmp(Extension, ".jpeg") == 0)
Jpeg = true;