Hi,

Last arg also is a pointer, so pass NULL.
        
        -Otto

Index: recv.c
===================================================================
RCS file: /home/cvs/src/lib/libc/net/recv.c,v
retrieving revision 1.6
diff -u -p -r1.6 recv.c
--- recv.c      4 Oct 2015 07:17:27 -0000       1.6
+++ recv.c      23 Mar 2023 06:00:37 -0000
@@ -36,6 +36,6 @@
 ssize_t
 recv(int s, void *buf, size_t len, int flags)
 {
-       return (recvfrom(s, buf, len, flags, NULL, 0));
+       return (recvfrom(s, buf, len, flags, NULL, NULL));
 }
 DEF_WEAK(recv);

Reply via email to