From 04877872e6e74e2e9d642f33c30aa357680c1bcc Mon Sep 17 00:00:00 2001 From: zfl9 Date: Mon, 17 Apr 2023 22:11:44 +0800 Subject: [PATCH] fix warning --- net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.c b/net.c index 507f21d..c13ca98 100644 --- a/net.c +++ b/net.c @@ -66,7 +66,7 @@ void net_init(void) { (void)res; if (errno != ENOSYS) { - x_recvmmsg = recvmmsg; + x_recvmmsg = (__typeof__(x_recvmmsg))recvmmsg; } else { log_info("recvmmsg not implemented, use recvmsg to simulate"); x_recvmmsg = my_recvmmsg; @@ -77,7 +77,7 @@ void net_init(void) { (void)res; if (errno != ENOSYS) { - x_sendmmsg = sendmmsg; + x_sendmmsg = (__typeof__(x_sendmmsg))sendmmsg; } else { log_info("sendmmsg not implemented, use sendmsg to simulate"); x_sendmmsg = my_sendmmsg;