]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
swapon.2: SYNOPSIS: Fix includes
authorAlejandro Colomar <alx.manpages@gmail.com>
Sat, 12 Jun 2021 08:31:27 +0000 (10:31 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 20 Jun 2021 02:43:43 +0000 (14:43 +1200)
There seems to be no reason to include <unistd.h>.
<sys/swap.h> already provides both the function prototypes and the
SWAP_* constants.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/swapon.2

index cebeb3cdb7e0ca4a59db5366d009b84d04a734da..07d5fe86c6bb863806d88c2b1c672e505d2f191d 100644 (file)
@@ -44,7 +44,6 @@
 swapon, swapoff \- start/stop swapping to file/device
 .SH SYNOPSIS
 .nf
-.B #include <unistd.h>
 .B #include <sys/swap.h>
 .PP
 .BI "int swapon(const char *" path ", int " swapflags );