mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
fix compile problem:
use of cast expressions as lvalues is deprecated. PR: ports/80492 Submitted by: maintainer
This commit is contained in:
parent
d89bec30ed
commit
ab41bc37ef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134425
78
chinese/cce/files/patch-include::defs.h
Normal file
78
chinese/cce/files/patch-include::defs.h
Normal file
@ -0,0 +1,78 @@
|
||||
diff -urN ./include/defs.h.orig ./include/defs.h
|
||||
--- ./include/defs.h.orig Sun Jan 11 12:41:21 2004
|
||||
+++ ./include/defs.h Tue Dec 14 08:53:19 2004
|
||||
@@ -57,49 +57,67 @@
|
||||
|
||||
static inline void bzero2(void *head, int n)
|
||||
{
|
||||
+ unsigned char *p = (unsigned char *) head;
|
||||
+
|
||||
while (n-- > 0)
|
||||
- *((unsigned char *)head)++ = (unsigned char)0x0;
|
||||
+ *p++ = (unsigned char)0x0;
|
||||
}
|
||||
|
||||
static inline void wzero(void *head, int n)
|
||||
{
|
||||
+ unsigned short *p = (unsigned short *) head;
|
||||
+
|
||||
n >>= 1;
|
||||
while (n-- > 0)
|
||||
- *((unsigned short *)head)++ = (unsigned short)0x0;
|
||||
+ *p++ = (unsigned short)0x0;
|
||||
|
||||
}
|
||||
|
||||
static inline void lzero(void *head, int n)
|
||||
{
|
||||
+ unsigned int *p = (unsigned int *) head;
|
||||
+
|
||||
n >>= 2;
|
||||
while (n-- > 0)
|
||||
- *((unsigned int *)head)++ = (unsigned int)0x0;
|
||||
+ *p++ = (unsigned int)0x0;
|
||||
}
|
||||
|
||||
static inline void bmove(void *dst, void *src, int n)
|
||||
{
|
||||
+ unsigned char *d = (unsigned char *) dst;
|
||||
+ unsigned char *s = (unsigned char *) src;
|
||||
+
|
||||
while(n-- > 0)
|
||||
- *((unsigned char *)dst)++ = *((unsigned char *)src)++;
|
||||
+ *d++ = *s++;
|
||||
}
|
||||
|
||||
static inline void brmove(void *dst, void *src, int n)
|
||||
{
|
||||
+ unsigned char *d = (unsigned char *) dst;
|
||||
+ unsigned char *s = (unsigned char *) src;
|
||||
+
|
||||
while(n-- > 0)
|
||||
- *--((unsigned char *)dst) = *--((unsigned char *)src);
|
||||
+ *--d = *--s;
|
||||
}
|
||||
|
||||
static inline void wmove(void *dst, void *src, int n)
|
||||
{
|
||||
+ unsigned short *d = (unsigned short *) dst;
|
||||
+ unsigned short *s = (unsigned short *) src;
|
||||
+
|
||||
n >>= 1;
|
||||
while(n-- > 0)
|
||||
- *((unsigned short *)dst)++ = *((unsigned short *)src)++;
|
||||
+ *d++ = *s++;
|
||||
}
|
||||
|
||||
static inline void lmove(void *dst, void *src, int n)
|
||||
{
|
||||
+ unsigned int *d = (unsigned int *) dst;
|
||||
+ unsigned int *s = (unsigned int *) src;
|
||||
+
|
||||
n >>= 2;
|
||||
while(n-- > 0)
|
||||
- *((unsigned int *)dst)++ = *((unsigned int *)src)++;
|
||||
+ *d++ = *s++;
|
||||
}
|
||||
|
||||
static inline void SafeFree(void **p)
|
Loading…
Reference in New Issue
Block a user