zebra, lib: Remove return from void functions

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
Donatas Abraitis 2020-02-04 20:05:21 +02:00
parent 0445dc7d4e
commit 5ee080f00a
2 changed files with 3 additions and 3 deletions

View file

@ -371,7 +371,7 @@ int ns_enable(struct ns *ns, void (*func)(ns_id_t, void *))
void ns_disable(struct ns *ns) void ns_disable(struct ns *ns)
{ {
return ns_disable_internal(ns); ns_disable_internal(ns);
} }
struct ns *ns_lookup(ns_id_t ns_id) struct ns *ns_lookup(ns_id_t ns_id)

View file

@ -2586,14 +2586,14 @@ static void zserv_error_no_vrf(ZAPI_HANDLER_ARGS)
zlog_debug("ZAPI message specifies unknown VRF: %d", zlog_debug("ZAPI message specifies unknown VRF: %d",
hdr->vrf_id); hdr->vrf_id);
return zsend_error_msg(client, ZEBRA_NO_VRF, hdr); zsend_error_msg(client, ZEBRA_NO_VRF, hdr);
} }
static void zserv_error_invalid_msg_type(ZAPI_HANDLER_ARGS) static void zserv_error_invalid_msg_type(ZAPI_HANDLER_ARGS)
{ {
zlog_info("Zebra received unknown command %d", hdr->command); zlog_info("Zebra received unknown command %d", hdr->command);
return zsend_error_msg(client, ZEBRA_INVALID_MSG_TYPE, hdr); zsend_error_msg(client, ZEBRA_INVALID_MSG_TYPE, hdr);
} }
void (*const zserv_handlers[])(ZAPI_HANDLER_ARGS) = { void (*const zserv_handlers[])(ZAPI_HANDLER_ARGS) = {