aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-04-01 08:39:40 +0800
committerPo Lu2022-04-01 08:40:35 +0800
commitc3ad47b7e4d6efeebee4ac1d40597700be749c88 (patch)
tree9f1b0cec65a24ac37c74cd501c8a716e64e988f0 /src
parentc5af19cba5924de89a38e7a177c07f42fd3cd543 (diff)
downloademacs-c3ad47b7e4d6efeebee4ac1d40597700be749c88.tar.gz
emacs-c3ad47b7e4d6efeebee4ac1d40597700be749c88.zip
Fix a build warning on the non-XI2 build
* src/xterm.c (xm_read_drop_start_reply): Take a const XEvent as msg.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c6
1 files 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,
1413} 1413}
1414 1414
1415static int 1415static int
1416xm_read_drop_start_reply (XEvent *msg, xm_drop_start_reply *reply) 1416xm_read_drop_start_reply (const XEvent *msg, xm_drop_start_reply *reply)
1417{ 1417{
1418 uint8_t *data; 1418 const uint8_t *data;
1419 1419
1420 data = (uint8_t *) &msg->xclient.data.b[0]; 1420 data = (const uint8_t *) &msg->xclient.data.b[0];
1421 1421
1422 if ((XM_DRAG_REASON_ORIGINATOR (data[0]) 1422 if ((XM_DRAG_REASON_ORIGINATOR (data[0])
1423 != XM_DRAG_ORIGINATOR_RECEIVER) 1423 != XM_DRAG_ORIGINATOR_RECEIVER)