]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/recv.2: Don't use 0 as a null pointer constant
authorPeter Radisson <radisson97@web.de>
Sat, 29 Mar 2025 18:20:18 +0000 (19:20 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sat, 29 Mar 2025 18:31:07 +0000 (19:31 +0100)
It was probably a typo, since in sendto(2) this is (..., NULL, 0).

Signed-off-by: Peter Radisson <radisson97@web.de>
Message-ID: <189ef077-18f4-43a3-9008-286a75e7bd91@web.de>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/recv.2

index 31635b0d7f46ac2fe94f2baccc8e0d5c29d3d7a0..fe72cf3c0c5680fc288be34cdfc2eaa60d3287d0 100644 (file)
@@ -298,7 +298,7 @@ It is equivalent to the call:
 .P
 .in +4n
 .EX
-recvfrom(fd, buf, size, flags, NULL, 0);
+recvfrom(fd, buf, size, flags, NULL, NULL);
 .EE
 .in
 .\"