diff --git a/mcstrans/src/mcscolor.c b/mcstrans/src/mcscolor.c index 558c2a0e..e713da9a 100644 --- a/mcstrans/src/mcscolor.c +++ b/mcstrans/src/mcscolor.c @@ -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]; diff --git a/mcstrans/src/mcstransd.c b/mcstrans/src/mcstransd.c index a5ed3618..d7fc5dea 100644 --- a/mcstrans/src/mcstransd.c +++ b/mcstrans/src/mcstransd.c @@ -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;