mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 15:23:46 +08:00
Fix compiler warning.
This commit is contained in:
@@ -654,6 +654,7 @@ static int callback_http(
|
||||
static void log_wrap(int level, const char *line)
|
||||
{
|
||||
char *l = (char *)line;
|
||||
UNUSED(level);
|
||||
l[strlen(line)-1] = '\0'; /* Remove \n */
|
||||
log__printf(NULL, MOSQ_LOG_WEBSOCKETS, "%s", l);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user