Subject: xsrc/15578: xsrc/xfree/xc/lib/X11/imDefIm.c is corrutped.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <fujii@chiyosuke.as.wakwak.ne.jp>
List: netbsd-bugs
Date: 02/11/2002 22:08:27
>Number:         15578
>Category:       xsrc
>Synopsis:       xsrc/xfree/xc/lib/X11/imDefIm.c is corrutped.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 11 05:09:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Katsuhiko Fujii
>Release:        -current XFree86-4.2.0 with NetBSD 1.5ZA
>Organization:
>Environment:
	
	

System: NetBSD eva-01.as.wakwak.ne.jp 1.5ZA NetBSD 1.5ZA (CHOYOSUK-2) #0: Sun Feb 3 13:43:23 JST 2002 fujii@chiyosuke.as.wakwak.ne.jp:/usr/src/sys/arch/i386/compile/CHIYOSUKE-2 i386
Architecture: i386
Machine: i386
>Description:
	xsrc/xfree/xc/lib/X11/imDefIm.c seems to be corrupted, hence
	make World should be stopped.
>How-To-Repeat:
	
	cvs from the cvs server, or you can see it on cvsweb.
>Fix:
--- imDefIm.c.orig	Mon Feb 11 21:45:39 2002
+++ imDefIm.c	Mon Feb 11 21:46:04 2002
@@ -89,46 +89,6 @@
     CARD8	*buf_b = (CARD8 *)buf;
     CARD16	*buf_s = (CARD16 *)buf;
 
-    buf_b[0] = maj
-#include "XimTrInt.h"
-#include "Ximint.h"
-
-
-/* EXTERNS */
-/* imTransR.c */
-extern Bool _XimRegisterDispatcher();
-
-Public int
-_XimCheckDataSize(buf, len)
-    XPointer	 buf;
-    int		 len;
-{
-    CARD16	*buf_s = (CARD16 *)buf;
-
-    if(len < XIM_HEADER_SIZE)
-	return -1;
-    return  buf_s[1];
-}
-
-Public void
-#if NeedFunctionPrototypes
-_XimSetHeader(
-    XPointer	 buf,
-    CARD8	 major_opcode,
-    CARD8	 minor_opcode,
-    INT16	*len
-)
-#else
-_XimSetHeader(buf, major_opcode, minor_opcode, len)
-    XPointer	 buf;
-    CARD8	 major_opcode;
-    CARD8	 minor_opcode;
-    INT16	*len;
-#endif /* NeedFunctionPrototypes */
-{
-    CARD8	*buf_b = (CARD8 *)buf;
-    CARD16	*buf_s = (CARD16 *)buf;
-
     buf_b[0] = major_opcode;
     buf_b[1] = minor_opcode;
     buf_s[1] = ((*len) / 4);

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