From: otto Date: Sat, 25 Mar 2023 19:16:34 +0000 (+0000) Subject: Last arg is also a pointer, so pass NULL instead of 0; ok deraadt@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bff7a3879a99da11806d5b1f163621cedfe2e09f;p=openbsd Last arg is also a pointer, so pass NULL instead of 0; ok deraadt@ --- diff --git a/lib/libc/net/recv.c b/lib/libc/net/recv.c index 365d0e2e193..1488ca26bd1 100644 --- a/lib/libc/net/recv.c +++ b/lib/libc/net/recv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: recv.c,v 1.6 2015/10/04 07:17:27 guenther Exp $ */ +/* $OpenBSD: recv.c,v 1.7 2023/03/25 19:16:34 otto Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -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);