string literals are now const so declare args as such to suppress compiler warnings
r3634 | dcl | 2012-07-11 11:59:16 +1000 (Wed, 11 Jul 2012) | 1 line
This commit is contained in:
@@ -38,8 +38,8 @@
|
||||
#define TXT_FILTER "FILTER"
|
||||
|
||||
static struct param_command_t {
|
||||
int cmd;
|
||||
char* txt;
|
||||
const int cmd;
|
||||
const char* txt;
|
||||
} param_command[] = {
|
||||
{CMD_DIRECTION, TXT_DIRECTION},
|
||||
{CMD_SCAN, TXT_SCAN},
|
||||
@@ -278,7 +278,7 @@ bool param_set_cmd(pPARAMETERS pp, char* cmd)
|
||||
return param_set(pp, name, value);
|
||||
}
|
||||
|
||||
bool param_get_cmd(pPARAMETERS pp, char* cmd, int n)
|
||||
bool param_get_cmd(pPARAMETERS pp, const char* cmd, int n)
|
||||
{
|
||||
char name[100];
|
||||
int len;
|
||||
|
||||
Reference in New Issue
Block a user