From 95484ae032506a4a270e6affaf4e7095ec291e26 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Fri, 29 Jun 2012 16:58:04 +0200 Subject: [PATCH] fix some signedness warnings --- group.c | 4 ++-- xutil.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/group.c b/group.c index ea74229..59abbcc 100644 --- a/group.c +++ b/group.c @@ -551,7 +551,7 @@ group_update_names(struct screen_ctx *sc) nstrings) * sizeof(*strings)); i = n = 0; - p = prop_ret; + p = (char *) prop_ret; while (n < nstrings) { strings[n++] = xstrdup(p); p += strlen(p) + 1; @@ -592,7 +592,7 @@ group_set_names(struct screen_ctx *sc) tlen = len; for (i = 0; i < sc->group_nonames; i++) { slen = strlen(sc->group_names[i]) + 1; - (void)strlcpy(q, sc->group_names[i], tlen); + (void)strlcpy((char *) q, sc->group_names[i], tlen); tlen -= slen; q += slen; } diff --git a/xutil.c b/xutil.c index 030584b..809f159 100644 --- a/xutil.c +++ b/xutil.c @@ -188,7 +188,7 @@ xu_getstrprop(Window win, Atom atm, char **text) { XTextProperty prop2; if (Xutf8TextListToTextProperty(X_Dpy, list, nitems, XUTF8StringStyle, &prop2) == Success) { - *text = xstrdup(prop2.value); + *text = xstrdup((char *) prop2.value); XFree(prop2.value); } } else { @@ -285,7 +285,7 @@ xu_ewmh_net_supported_wm_check(struct screen_ctx *sc) XChangeProperty(X_Dpy, w, _NET_SUPPORTING_WM_CHECK, XA_WINDOW, 32, PropModeReplace, (unsigned char *)&w, 1); XChangeProperty(X_Dpy, w, _NET_WM_NAME, UTF8_STRING, - 8, PropModeReplace, WMNAME, strlen(WMNAME)); + 8, PropModeReplace, (unsigned char *) WMNAME, strlen(WMNAME)); } unsigned long