aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2005-05-01 11:03:15 +0800
committervanilla <vanilla@FreeBSD.org>2005-05-01 11:03:15 +0800
commite14ba7ec4ec7148c54595bf8de5378d71e1943c5 (patch)
tree346f5daca2d989cefb7ee2c046b42b3bac56cc19 /chinese
parentae42373946015f5f4e9489e64e624a0ce4014a12 (diff)
downloadfreebsd-ports-gnome-e14ba7ec4ec7148c54595bf8de5378d71e1943c5.tar.gz
freebsd-ports-gnome-e14ba7ec4ec7148c54595bf8de5378d71e1943c5.tar.zst
freebsd-ports-gnome-e14ba7ec4ec7148c54595bf8de5378d71e1943c5.zip
fix compile problem:
use of cast expressions as lvalues is deprecated. PR: ports/80492 Submitted by: maintainer
Diffstat (limited to 'chinese')
-rw-r--r--chinese/cce/files/patch-include::defs.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/chinese/cce/files/patch-include::defs.h b/chinese/cce/files/patch-include::defs.h
new file mode 100644
index 000000000000..064bc9275098
--- /dev/null
+++ b/chinese/cce/files/patch-include::defs.h
@@ -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)