]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a build warning on the non-XI2 build
authorPo Lu <luangruo@yahoo.com>
Fri, 1 Apr 2022 00:39:40 +0000 (08:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 1 Apr 2022 00:40:35 +0000 (08:40 +0800)
* src/xterm.c (xm_read_drop_start_reply): Take a const XEvent as
msg.

src/xterm.c

index df9fe1fe8c79ac51b81323541ee659f4594a4432..3c71ddf39546bb2fa844aa7c81be27c72b5abbbf 100644 (file)
@@ -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)