From 1b14c2e7b03f7c30e24301eeab7a343d39a257d3 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 10 Mar 2017 07:56:14 +0100 Subject: [PATCH] sockets: fix printf warning in gcc --- src/api/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index 8de5ce66..2aa9d284 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -1103,7 +1103,7 @@ lwip_recvmsg(int s, struct msghdr *message, int flags) struct lwip_sock *sock; int recv_flags = flags; - LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvmsg(%d, message=%p, flags=0x%x)\n", s, message, flags)); + LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvmsg(%d, message=%p, flags=0x%x)\n", s, (void*)message, flags)); LWIP_ERROR("lwip_recvmsg: invalid message pointer", message != NULL, return ERR_ARG;); LWIP_ERROR("lwip_recvmsg: unsupported flags", ((flags == 0) || (flags == MSG_PEEK)), set_errno(EOPNOTSUPP); return -1;);