From e985074edacf30012e360f7cc745e070ce997141 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 9 Mar 2017 14:01:27 +0100 Subject: [PATCH] Drop unneeded casting of "entry" from struct cache_service MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since commit 819b909b82e4 ("cache: constify entry and host pointers in struct cache_entry") it is "const char *" so we don't need to cast it. Signed-off-by: Rafał Miłecki --- ubus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubus.c b/ubus.c index a74df6c..9ceeab1 100644 --- a/ubus.c +++ b/ubus.c @@ -71,7 +71,7 @@ umdns_browse(struct ubus_context *ctx, struct ubus_object *obj, if (!c1) { c1 = blobmsg_open_table(&b, buffer); } - snprintf(buffer, MAX_NAME_LEN, "%s", (const char *) s->entry); + snprintf(buffer, MAX_NAME_LEN, "%s", s->entry); local = strstr(buffer, "._"); if (local) *local = '\0'; @@ -105,7 +105,7 @@ umdns_hosts(struct ubus_context *ctx, struct ubus_object *obj, char *local; if (!cache_service_is_host(s)) continue; - snprintf(buffer, MAX_NAME_LEN, "%s", (const char *) s->entry); + snprintf(buffer, MAX_NAME_LEN, "%s", s->entry); local = strstr(buffer, "._"); if (local) *local = '\0'; -- 2.30.2