mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't use ovbcopy(); use void * instead of char *.
This commit is contained in:
parent
8543efae60
commit
7283c97574
1 changed files with 3 additions and 6 deletions
|
|
@ -60,11 +60,8 @@
|
|||
#define INCR(counter)
|
||||
#endif
|
||||
|
||||
#define BCMP(p1, p2, n) bcmp((char *)(p1), (char *)(p2), (int)(n))
|
||||
#define BCOPY(p1, p2, n) bcopy((char *)(p1), (char *)(p2), (int)(n))
|
||||
#ifndef _KERNEL
|
||||
#define ovbcopy bcopy
|
||||
#endif
|
||||
#define BCMP(p1, p2, n) bcmp((void *)(p1), (void *)(p2), (int)(n))
|
||||
#define BCOPY(p1, p2, n) bcopy((void *)(p1), (void *)(p2), (int)(n))
|
||||
|
||||
void
|
||||
sl_compress_init(comp, max_state)
|
||||
|
|
@ -448,7 +445,7 @@ sl_uncompress_tcp(bufp, len, type, comp)
|
|||
*/
|
||||
if ((intptr_t)cp & 3) {
|
||||
if (len > 0)
|
||||
(void) ovbcopy(cp, (caddr_t)((intptr_t)cp &~ 3), len);
|
||||
BCOPY(cp, ((intptr_t)cp &~ 3), len);
|
||||
cp = (u_char *)((intptr_t)cp &~ 3);
|
||||
}
|
||||
cp -= hlen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue