diff options
| author | Po Lu | 2022-04-01 08:39:40 +0800 |
|---|---|---|
| committer | Po Lu | 2022-04-01 08:40:35 +0800 |
| commit | c3ad47b7e4d6efeebee4ac1d40597700be749c88 (patch) | |
| tree | 9f1b0cec65a24ac37c74cd501c8a716e64e988f0 /src | |
| parent | c5af19cba5924de89a38e7a177c07f42fd3cd543 (diff) | |
| download | emacs-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.c | 6 |
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 | ||
| 1415 | static int | 1415 | static int |
| 1416 | xm_read_drop_start_reply (XEvent *msg, xm_drop_start_reply *reply) | 1416 | xm_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) |