libc-net: eliminate annoying warning in sendmsg

Fix genodelabs/genode#5052
This commit is contained in:
Stefan Kalkowski 2023-11-10 16:36:58 +01:00 committed by Christian Helmuth
parent 040cf2eb2a
commit e3881163c4

View File

@ -39,6 +39,7 @@
*
*/
#include "namespace.h"
#include <sys/cdefs.h>
#include <sys/types.h>
@ -49,6 +50,8 @@
#include <string.h>
#include <stddef.h>
#include "un-namespace.h"
ssize_t sendmsg(int s, const struct msghdr *msg, int flags)
{
@ -73,4 +76,4 @@ ssize_t sendmsg(int s, const struct msghdr *msg, int flags)
ret = _sendto(s, buf, tot, flags, msg->msg_name, msg->msg_namelen);
free (buf);
return ret;
}
}