mq_getsetattr.2: Use 'const' when appropriate

The Linux kernel uses the following:

ipc/mqueue.c:1480:
SYSCALL_DEFINE3(mq_getsetattr, mqd_t, mqdes,
		const struct mq_attr __user *, u_mqstat,
		struct mq_attr __user *, u_omqstat)

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2020-11-01 16:08:31 +01:00 committed by Michael Kerrisk
parent 706d4f73ae
commit a024704790
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ mq_getsetattr \- get/set message queue attributes
.B #include <sys/types.h>
.B #include <mqueue.h>
.PP
.BI "int mq_getsetattr(mqd_t " mqdes ", struct mq_attr *" newattr ","
.BI "int mq_getsetattr(mqd_t " mqdes ", const struct mq_attr *" newattr ,
.BI " struct mq_attr *" oldattr );
.fi
.PP