From 09221a12124bd6c3b13d23c85932a26cae57edac Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 18 Nov 2004 21:39:19 +0000 Subject: * src/window.c (unhide_transient_for): add a newline to debugging output. (hide_transient_for_between): likewise. * src/manage.c (get_wmname): typecast name when passing to xstrdup. * src/main.c (main): typecast command[i] when passing to send_command. * src/events.c (execute_remote_command): typecast req[1] when passing to command. (receive_command): typecast result when passing to XChangeProperty. * src/editor.c (editor_history_previous): Add newline to debugging output. (editor_history_next): likewise. (paste_primary_selection): typecast data when passing to editor_insert. * src/communications.c (receive_command_result): typecast result when passing to strlen. (send_command): typecast cmd when passing the XChangeProperty. * src/actions.c (user_commands): add focusprev (cmd_prev): clean up (cmd_next): likewise (cmd_prev_frame): call find_frame_prev instead of find_frame_next. (cmd_frestore): grab the frame's number first when processing the frames. --- src/communications.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/communications.c') diff --git a/src/communications.c b/src/communications.c index 4356dfa..58a6841 100644 --- a/src/communications.c +++ b/src/communications.c @@ -73,7 +73,7 @@ receive_command_result (Window w) } /* If result is not the empty string, print it. */ - if (strlen (result)) + if (strlen ((char *)result)) printf ("%s\n", result); /* Free the result. */ @@ -104,7 +104,7 @@ send_command (unsigned char interactive, unsigned char *cmd, int screen_num) XSelectInput (dpy, w, PropertyChangeMask); XChangeProperty (dpy, w, rp_command, XA_STRING, - 8, PropModeReplace, sbuf_get(s), strlen (cmd) + 2); + 8, PropModeReplace, sbuf_get(s), strlen ((char *)cmd) + 2); XChangeProperty (dpy, root, rp_command_request, XA_WINDOW, -- cgit v1.2.3