fix includes and type

This commit is contained in:
Dennis Gunia
2025-10-21 00:30:10 +02:00
parent ea8f512b4d
commit e8f56806b6
4 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ void ws_messagehandler(ws_cli_conn_t client, const unsigned char *msg, uint64_t
log_message(LOG_DEBUG, "WebSocket received message: %s (%zu), from: %s", msg, size, cli);
json_tokener *tok = json_tokener_new();
json_object *req = json_tokener_parse_ex(tok, msg, size);
json_object *req = json_tokener_parse_ex(tok, (const char*)msg, size);
enum json_tokener_error jerr;
jerr = json_tokener_get_error(tok);
if (jerr != json_tokener_success)