mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added missing 'const'
This commit is contained in:
parent
380b28cec8
commit
72642d67a1
4
menu.c
4
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 1.26 2000/09/10 15:06:15 kls Exp $
|
* $Id: menu.c 1.27 2000/09/11 21:13:46 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1190,7 +1190,7 @@ eOSState cDirectChannelSelect::ProcessKey(eKeys Key)
|
|||||||
if (number >= 0) {
|
if (number >= 0) {
|
||||||
number = number * 10 + Key - k0;
|
number = number * 10 + Key - k0;
|
||||||
cChannel *channel = Channels.GetByNumber(number);
|
cChannel *channel = Channels.GetByNumber(number);
|
||||||
char *Name = channel ? channel->name : "*** Invalid Channel ***";
|
const char *Name = channel ? channel->name : "*** Invalid Channel ***";
|
||||||
int BufSize = MenuColumns + 1;
|
int BufSize = MenuColumns + 1;
|
||||||
char buffer[BufSize];
|
char buffer[BufSize];
|
||||||
snprintf(buffer, BufSize, "%d %s", number, Name);
|
snprintf(buffer, BufSize, "%d %s", number, Name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user