summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-04-22 15:21:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-04-22 15:21:41 +0200
commit88f13b1b296218589a44dac227964a8a47a75e50 (patch)
tree01a19ab89e62c0fd7da9c34918e32c0010f9eed1 /remote.c
parentc32864756051a976e87879cd5827f4d95b5d55d5 (diff)
downloadvdr-88f13b1b296218589a44dac227964a8a47a75e50.tar.gz
vdr-88f13b1b296218589a44dac227964a8a47a75e50.tar.bz2
Added 'const' to please compiler
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote.c b/remote.c
index 49864790..84737aa2 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'osm.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 1.3 2000/04/16 13:54:16 kls Exp $
+ * $Id: remote.c 1.4 2000/04/22 15:21:41 kls Exp $
*/
#include "remote.h"
@@ -211,12 +211,12 @@ bool cRcIo::Number(int n, bool Hex)
bool cRcIo::String(char *s)
{
- char *chars = mode == modeH ? "0123456789ABCDEF" : "0123456789-EHLP ";
+ const char *chars = mode == modeH ? "0123456789ABCDEF" : "0123456789-EHLP ";
int n = 0;
for (int i = 0; *s && i < 4; s++, i++) {
n <<= 4;
- for (char *c = chars; *c; c++) {
+ for (const char *c = chars; *c; c++) {
if (*c == *s) {
n |= c - chars;
break;