summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorotto <>2023-03-25 19:16:34 +0000
committerotto <>2023-03-25 19:16:34 +0000
commit2c17102e27aad444a2866b781d07598b1ea21617 (patch)
tree956864de656f2ea5c9ba9aa6091b107476f2fb21
parentaa9c36ea6771e5920cc990455a1c5a238404271a (diff)
downloadopenbsd-2c17102e27aad444a2866b781d07598b1ea21617.tar.gz
openbsd-2c17102e27aad444a2866b781d07598b1ea21617.tar.bz2
openbsd-2c17102e27aad444a2866b781d07598b1ea21617.zip
Last arg is also a pointer, so pass NULL instead of 0; ok deraadt@
-rw-r--r--src/lib/libc/net/recv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/recv.c b/src/lib/libc/net/recv.c
index 365d0e2e19..1488ca26bd 100644
--- a/src/lib/libc/net/recv.c
+++ b/src/lib/libc/net/recv.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: recv.c,v 1.6 2015/10/04 07:17:27 guenther Exp $ */ 1/* $OpenBSD: recv.c,v 1.7 2023/03/25 19:16:34 otto Exp $ */
2/* 2/*
3 * Copyright (c) 1988, 1993 3 * Copyright (c) 1988, 1993
4 * The Regents of the University of California. All rights reserved. 4 * The Regents of the University of California. All rights reserved.
@@ -36,6 +36,6 @@
36ssize_t 36ssize_t
37recv(int s, void *buf, size_t len, int flags) 37recv(int s, void *buf, size_t len, int flags)
38{ 38{
39 return (recvfrom(s, buf, len, flags, NULL, 0)); 39 return (recvfrom(s, buf, len, flags, NULL, NULL));
40} 40}
41DEF_WEAK(recv); 41DEF_WEAK(recv);