Mercurial > hg > xemacs-beta
diff lwlib/xlwgauge.c @ 2271:0dfff19d20da
[xemacs-hg @ 2004-09-14 20:26:40 by james]
Fix gcc 3.3 type-punning warnings.
author | james |
---|---|
date | Tue, 14 Sep 2004 20:26:46 +0000 |
parents | b39c14581166 |
children | 04bc9d2f42c7 |
line wrap: on
line diff
--- a/lwlib/xlwgauge.c Tue Sep 14 18:22:35 2004 +0000 +++ b/lwlib/xlwgauge.c Tue Sep 14 20:26:46 2004 +0000 @@ -649,7 +649,8 @@ #ifdef HAVE_XMU if( *target == XA_TARGETS(XtDisplay(w)) ) { - Atom *rval, *stdTargets ; + XPointer stdTargets; + Atom *rval ; unsigned long stdLength ; /* XmuConvertStandardSelection can handle this. This function @@ -659,7 +660,7 @@ req = XtGetSelectionRequest(w, *selection, NULL) ; XmuConvertStandardSelection(w, req->time, selection, target, - type, (XPointer*)&stdTargets, &stdLength, format) ; + type, &stdTargets, &stdLength, format) ; *type = XA_ATOM ; /* TODO: needed? */ *length = stdLength + 3 ; @@ -668,7 +669,7 @@ *rval++ = XA_INTEGER ; *rval++ = XA_STRING ; *rval++ = XA_TEXT(XtDisplay(w)) ; - memcpy((char *)rval, (char *)stdTargets, stdLength*sizeof(Atom)) ; + memcpy(rval, stdTargets, stdLength*sizeof(Atom)) ; XtFree((char*) stdTargets) ; *format = 8*sizeof(Atom) ; /* TODO: needed? */ return True ;