From c3ad47b7e4d6efeebee4ac1d40597700be749c88 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 1 Apr 2022 08:39:40 +0800 Subject: [PATCH] Fix a build warning on the non-XI2 build * src/xterm.c (xm_read_drop_start_reply): Take a const XEvent as msg. --- src/xterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.2