From 52b92a2ad7058399ae36daefa66bbdcdf7f68d72 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 12 Jun 2021 10:31:22 +0200 Subject: [PATCH] pipe.2: SYNOPSIS: Fix incorrect prototype A function declarator with empty parentheses, which is not a prototype, is an obsolescent feature of C (See C17 6.11.6.1), and doesn't mean 0 parameters, but instead that no information about the parameters is provided (See C17 6.5.2.2). Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/pipe.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/pipe.2 b/man2/pipe.2 index 93fbd36f2..41a482f37 100644 --- a/man2/pipe.2 +++ b/man2/pipe.2 @@ -56,7 +56,7 @@ pipe, pipe2 \- create pipe .B struct fd_pair { .B " long fd[2];" .B "};" -.B struct fd_pair pipe(); +.B struct fd_pair pipe(void); .fi .SH DESCRIPTION .BR pipe ()