ports/80492: Update port: chinese/cce

statue statue at webbbs.yzu.edu.tw
Sun May 1 01:30:03 UTC 2005


>Number:         80492
>Category:       ports
>Synopsis:       Update port: chinese/cce
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 01 01:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     statue
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
[MAINTAINER]
>Environment:
System: FreeBSD windtop.yzu.edu.tw 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Wed Sep 24 14:53:36 CST 2003 visor at windtop.yzu.edu.tw:/usr/src/sys/compile/web i386


	
>Description:
fix compile problem:
use of cast expressions as lvalues is deprecated.
	
>How-To-Repeat:
	
>Fix:

	

--- cce.diff begins here ---
diff -ruN cce.orig/files/patch-include::defs.h cce/files/patch-include::defs.h
--- cce.orig/files/patch-include::defs.h	Thu Jan  1 08:00:00 1970
+++ cce/files/patch-include::defs.h	Sun May  1 02:55:25 2005
@@ -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)
--- cce.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list