From 7d4c1814f6c8b48aaba422848781244a3a8e1685 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 31 Aug 1996 14:48:13 +0000 Subject: Don't depend in the kernel on the gcc feature of doing arithmetic on pointers of type `void *'. Warn about this in future. --- sys/kern/sysv_msg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/kern/sysv_msg.c') 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; } -- cgit v1.1