mcstrans: fix -Wwrite-strings warnings
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
2f94ac47d5
commit
0df0b25d95
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ typedef struct setab {
|
||||||
#define N_COLOR 4
|
#define N_COLOR 4
|
||||||
|
|
||||||
#define AUX_RULE_COLOR "color"
|
#define AUX_RULE_COLOR "color"
|
||||||
static char *rules[] = { "user", "role", "type", "range" };
|
static const char *rules[] = { "user", "role", "type", "range" };
|
||||||
|
|
||||||
static setab_t *clist[N_COLOR];
|
static setab_t *clist[N_COLOR];
|
||||||
static setab_t *cend[N_COLOR];
|
static setab_t *cend[N_COLOR];
|
||||||
|
|
|
@ -90,7 +90,7 @@ send_response(int fd, uint32_t function, char *data, int32_t ret_val)
|
||||||
ssize_t count;
|
ssize_t count;
|
||||||
|
|
||||||
if (!data)
|
if (!data)
|
||||||
data = "";
|
data = (char *)"";
|
||||||
|
|
||||||
data_size = strlen(data) + 1;
|
data_size = strlen(data) + 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue