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 <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-06-12 10:31:22 +02:00 committed by Michael Kerrisk
parent 7b7831c24f
commit 52b92a2ad7
1 changed files with 1 additions and 1 deletions

View File

@ -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 ()