From 5f7be5f0d6bb7f13d60a9b494241c9854a77cdcb Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Mon, 21 Jun 2021 14:31:54 +0100 Subject: [PATCH] Fix compiler warning. --- src/ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ubus.c b/src/ubus.c index 6a4b34c..4d63006 100644 --- a/src/ubus.c +++ b/src/ubus.c @@ -117,7 +117,7 @@ char *ubus_init() if (ret) { ubus_destroy(ubus); - return ubus_strerror(ret); + return (char *)ubus_strerror(ret); } ubus->connection_lost = ubus_disconnect_cb;