1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

fix warnings

This commit is contained in:
Alfred Perlstein 2003-01-26 23:25:00 +00:00
parent 818c8b696b
commit ca315837c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109906

View File

@ -772,7 +772,7 @@ msgsnd(td, uap)
goto done2; goto done2;
} }
mtx_lock(&msq_mtx); 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 * Validate the message type
@ -815,7 +815,7 @@ msgsnd(td, uap)
} }
mtx_lock(&msq_mtx); mtx_lock(&msq_mtx);
msgsz -= tlen; msgsz -= tlen;
user_msgp = (char *)user_msgp + tlen; user_msgp = (const char *)user_msgp + tlen;
next = msgmaps[next].next; next = msgmaps[next].next;
} }
if (next != -1) if (next != -1)