Commit 5a232ffb authored by Jan D's avatar Jan D
Browse files

Fix last cons in set_wm_state, remove unused variables.

* src/xselect.c (x_send_client_event): Remove unused variables cons and
size.

* src/xterm.c (set_wm_state): Add Qnil to final cons.
parent 24021b38
2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
* xterm.c (set_wm_state): Add Qnil to final cons.
* xselect.c (x_send_client_event): Remove unused variables cons and
size.
2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
 
* keyboard.c (modify_event_symbol) : Add const to array elements of
......
......@@ -2544,8 +2544,6 @@ x_send_client_event (Lisp_Object display, Lisp_Object dest, Lisp_Object from, At
struct x_display_info *dpyinfo = check_x_display_info (display);
Window wdest;
XEvent event;
Lisp_Object cons;
int size;
struct frame *f = check_x_frame (from);
int to_root;
......@@ -2593,9 +2591,6 @@ x_send_client_event (Lisp_Object display, Lisp_Object dest, Lisp_Object from, At
if (wdest == 0) wdest = dpyinfo->root_window;
to_root = wdest == dpyinfo->root_window;
for (cons = values, size = 0; CONSP (cons); cons = XCDR (cons), ++size)
;
BLOCK_INPUT;
event.xclient.message_type = message_type;
......
......@@ -8382,7 +8382,8 @@ set_wm_state (Lisp_Object frame, int add, Atom atom, Atom value)
Fcons
(make_fixnum_or_float (atom),
value != 0
? make_fixnum_or_float (value) : Qnil)));
? Fcons (make_fixnum_or_float (value), Qnil)
: Qnil)));
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment