summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_msg.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-01-26 20:09:34 +0000
committeralfred <alfred@FreeBSD.org>2003-01-26 20:09:34 +0000
commit1cd571649a37a38ef29c79e02b6c8bf5d790691f (patch)
treead46fcaeb6e294b2d44f75ea988e88f75a3c7951 /sys/kern/sysv_msg.c
parent19a663e554a3754424e305a92065ce8f0e96cfcf (diff)
downloadFreeBSD-src-1cd571649a37a38ef29c79e02b6c8bf5d790691f.zip
FreeBSD-src-1cd571649a37a38ef29c79e02b6c8bf5d790691f.tar.gz
Add const qualifier to data argument for msgsnd.
PR: standards/45274 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
Diffstat (limited to 'sys/kern/sysv_msg.c')
-rw-r--r--sys/kern/sysv_msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c
index 00d0fbb..32c975e 100644
--- a/sys/kern/sysv_msg.c
+++ b/sys/kern/sysv_msg.c
@@ -566,7 +566,7 @@ done2:
#ifndef _SYS_SYSPROTO_H_
struct msgsnd_args {
int msqid;
- void *msgp;
+ const void *msgp;
size_t msgsz;
int msgflg;
};
@@ -581,7 +581,7 @@ msgsnd(td, uap)
register struct msgsnd_args *uap;
{
int msqid = uap->msqid;
- void *user_msgp = uap->msgp;
+ const void *user_msgp = uap->msgp;
size_t msgsz = uap->msgsz;
int msgflg = uap->msgflg;
int segs_needed, error = 0;
OpenPOWER on IntegriCloud