diff options
author | bde <bde@FreeBSD.org> | 1996-08-31 14:48:13 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-08-31 14:48:13 +0000 |
commit | 7d4c1814f6c8b48aaba422848781244a3a8e1685 (patch) | |
tree | d30aec0f7e14e7c815c7a2ac90c600b28f51abf5 /sys/kern/sysv_msg.c | |
parent | f8b5cfc537cc8181d579a4fd086b618c24806f74 (diff) | |
download | FreeBSD-src-7d4c1814f6c8b48aaba422848781244a3a8e1685.zip FreeBSD-src-7d4c1814f6c8b48aaba422848781244a3a8e1685.tar.gz |
Don't depend in the kernel on the gcc feature of doing arithmetic on
pointers of type `void *'. Warn about this in future.
Diffstat (limited to 'sys/kern/sysv_msg.c')
-rw-r--r-- | sys/kern/sysv_msg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 36bdbf3..028e5ce 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -1,4 +1,4 @@ -/* $Id: sysv_msg.c,v 1.11 1995/12/15 05:00:27 peter Exp $ */ +/* $Id: sysv_msg.c,v 1.12 1996/01/05 16:37:56 wollman Exp $ */ /* * Implementation of SVID messages @@ -652,7 +652,7 @@ msgsnd(p, uap, retval) wakeup((caddr_t)msqptr); return(eval); } - user_msgp += sizeof(msghdr->msg_type); + user_msgp = (char *)user_msgp + sizeof(msghdr->msg_type); /* * Validate the message type @@ -694,7 +694,7 @@ msgsnd(p, uap, retval) return(eval); } msgsz -= tlen; - user_msgp += tlen; + user_msgp = (char *)user_msgp + tlen; next = msgmaps[next].next; } if (next != -1) @@ -990,7 +990,7 @@ msgrcv(p, uap, retval) wakeup((caddr_t)msqptr); return(eval); } - user_msgp += sizeof(msghdr->msg_type); + user_msgp = (char *)user_msgp + sizeof(msghdr->msg_type); /* * Return the segments to the user @@ -1019,7 +1019,7 @@ msgrcv(p, uap, retval) wakeup((caddr_t)msqptr); return(eval); } - user_msgp += tlen; + user_msgp = (char *)user_msgp + tlen; next = msgmaps[next].next; } |