mq_getsetattr.2: Use 'const' when appropriate
PATCH 1/1 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 <[email protected]>
--- man2/mq_getsetattr.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
man2/mq_getsetattr.2 +1 -1
@@ -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
Signature · 1 line
2.28.0
Quoted 8 lines · Alejandro Colomar
The Linux kernel uses the following:
ipc/mqueue.c:1480:
SYSCALL_DEFINE3(mq_getsetattr,mqd_t, mqdes,
const structmq_attr__user*,u_mqstat, structmq_attr__user*,u_omqstat)Signed-off-by Alejandro Colomar <[email protected]>
Thanks, Alex. Patch applied.
Cheers,
Michael
Quoted 18 lines
--- man2/mq_getsetattr.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)man2/mq_getsetattr.2 +1
-1@@ -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
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/