summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_msg.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-01-26 23:25:00 +0000
committeralfred <alfred@FreeBSD.org>2003-01-26 23:25:00 +0000
commit3d1537da2b1be8478b646badd446cd835ff0c79b (patch)
tree948f45292a32b56bf0f0bb1b0b17345095043732 /sys/kern/sysv_msg.c
parentb7034cb57eb36b304eb47b58871f89beb9c168e4 (diff)
downloadFreeBSD-src-3d1537da2b1be8478b646badd446cd835ff0c79b.zip
FreeBSD-src-3d1537da2b1be8478b646badd446cd835ff0c79b.tar.gz
fix warnings
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 32c975e..08ca4b5 100644
--- a/sys/kern/sysv_msg.c
+++ b/sys/kern/sysv_msg.c
@@ -772,7 +772,7 @@ msgsnd(td, uap)
goto done2;
}
mtx_lock(&msq_mtx);
- user_msgp = (char *)user_msgp + sizeof(msghdr->msg_type);
+ user_msgp = (const char *)user_msgp + sizeof(msghdr->msg_type);
/*
* Validate the message type
@@ -815,7 +815,7 @@ msgsnd(td, uap)
}
mtx_lock(&msq_mtx);
msgsz -= tlen;
- user_msgp = (char *)user_msgp + tlen;
+ user_msgp = (const char *)user_msgp + tlen;
next = msgmaps[next].next;
}
if (next != -1)
OpenPOWER on IntegriCloud