From: Po Lu Date: Fri, 1 Apr 2022 00:39:40 +0000 (+0800) Subject: Fix a build warning on the non-XI2 build X-Git-Tag: emacs-29.0.90~1931^2~847 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c3ad47b7e4d6efeebee4ac1d40597700be749c88;p=emacs.git Fix a build warning on the non-XI2 build * src/xterm.c (xm_read_drop_start_reply): Take a const XEvent as msg. --- diff --git a/src/xterm.c b/src/xterm.c index df9fe1fe8c7..3c71ddf3954 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1413,11 +1413,11 @@ xm_send_drop_message (struct x_display_info *dpyinfo, Window source, } static int -xm_read_drop_start_reply (XEvent *msg, xm_drop_start_reply *reply) +xm_read_drop_start_reply (const XEvent *msg, xm_drop_start_reply *reply) { - uint8_t *data; + const uint8_t *data; - data = (uint8_t *) &msg->xclient.data.b[0]; + data = (const uint8_t *) &msg->xclient.data.b[0]; if ((XM_DRAG_REASON_ORIGINATOR (data[0]) != XM_DRAG_ORIGINATOR_RECEIVER)