summaryrefslogtreecommitdiff
path: root/src/globals.c
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2009-07-15 17:41:11 +0200
committerBernhard R. Link <brlink@debian.org>2009-07-15 18:54:31 +0200
commit36dd8df21904c8e4dba98af0fb9137c438324f9f (patch)
tree790455ef7fe69fdf1dfdd29309966bca749db1d5 /src/globals.c
parentad06f3519881bd3b2d5b8a3f1880a6768a530e2a (diff)
downloadratpoison-36dd8df21904c8e4dba98af0fb9137c438324f9f.zip
silence warnings about signed/unsigned char mismatch
Diffstat (limited to 'src/globals.c')
-rw-r--r--src/globals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/globals.c b/src/globals.c
index 7446bca..f056103 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -95,7 +95,7 @@ x_export_selection (void)
if (XGetSelectionOwner(dpy, XA_PRIMARY) != screens[0].key_window)
PRINT_ERROR(("can't get primary selection"));
XChangeProperty(dpy, screens[0].root, XA_CUT_BUFFER0, XA_STRING, 8,
- PropModeReplace, selection.text, selection.len);
+ PropModeReplace, (unsigned char*)selection.text, selection.len);
}
void
@@ -172,7 +172,7 @@ get_primary_selection(void)
continue;
/* Accumulate the data. FIXME: ct.value may not be NULL
terminated. */
- sbuf_nconcat (s, ct.value, ct.nitems);
+ sbuf_nconcat (s, (const char*)ct.value, ct.nitems);
XFree(ct.value);
}
return sbuf_free_struct (s);