emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c3ad47b7e4: Fix a build warning on the non-XI2 build


From: Po Lu
Subject: master c3ad47b7e4: Fix a build warning on the non-XI2 build
Date: Thu, 31 Mar 2022 20:40:47 -0400 (EDT)

branch: master
commit c3ad47b7e4d6efeebee4ac1d40597700be749c88
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 df9fe1fe8c..3c71ddf395 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]