mcstrans: fix -Wwrite-strings warnings

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2017-02-05 16:58:17 +01:00 committed by James Carter
parent 2f94ac47d5
commit 0df0b25d95
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ typedef struct setab {
#define N_COLOR 4
#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 *cend[N_COLOR];

View File

@ -90,7 +90,7 @@ send_response(int fd, uint32_t function, char *data, int32_t ret_val)
ssize_t count;
if (!data)
data = "";
data = (char *)"";
data_size = strlen(data) + 1;