diff -upNr ratpoison.orig/src/communications.c ratpoison/src/communications.c --- ratpoison.orig/src/communications.c 2004-10-05 18:20:49 +1000 +++ ratpoison/src/communications.c 2004-11-03 15:10:57 +1100 @@ -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, XSelectInput (dpy, w, PropertyChangeMask); XChangeProperty (dpy, w, rp_command, XA_STRING, - 8, PropModeReplace, sbuf_get(s), strlen (cmd) + 2); + 8, PropModeReplace, (unsigned char *)sbuf_get(s), strlen ((char *)cmd) + 2); XChangeProperty (dpy, root, rp_command_request, XA_WINDOW, diff -upNr ratpoison.orig/src/editor.c ratpoison/src/editor.c --- ratpoison.orig/src/editor.c 2004-09-30 15:23:57 +1000 +++ ratpoison/src/editor.c 2004-11-03 15:10:57 +1100 @@ -515,7 +515,7 @@ paste_primary_selection (rp_input_line * offset += nitems; /* editor_insert (line, data, nitems); */ - editor_insert (line, data); + editor_insert (line, (char *)data); PRINT_DEBUG (("bytes_after = %ld, nitems = %ld, data = '%s'\n", bytes_after, nitems, data)); diff -upNr ratpoison.orig/src/events.c ratpoison/src/events.c --- ratpoison.orig/src/events.c 2004-10-05 18:20:49 +1000 +++ ratpoison/src/events.c 2004-11-03 15:10:57 +1100 @@ -471,7 +471,7 @@ execute_remote_command (Window w) } PRINT_DEBUG (("command: %s\n", req)); - result = command (req[0], &req[1]); + result = command (req[0], (char *)&req[1]); XFree (req); return result; @@ -542,7 +542,7 @@ receive_command (Window root) if (result) { XChangeProperty (dpy, w, rp_command_result, XA_STRING, - 8, PropModeReplace, result, strlen (result)); + 8, PropModeReplace, (unsigned char *)result, strlen (result)); free (result); } else diff -upNr ratpoison.orig/src/main.c ratpoison/src/main.c --- ratpoison.orig/src/main.c 2004-10-18 14:59:50 +1000 +++ ratpoison/src/main.c 2004-11-03 15:12:02 +1100 @@ -584,9 +584,9 @@ main (int argc, char *argv[]) for (i=0; i