summaryrefslogtreecommitdiff
path: root/src/WMProps.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2020-04-21 20:53:35 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2020-04-21 20:56:05 -0400
commit844271305a28e87031562dfeb43defbea02960a2 (patch)
tree20aa7ca73888baef3dd8ca5c7626a4bc9b6330c4 /src/WMProps.c
parent53b59ddfc114a55d26e9717a1b4822f1b18c40ca (diff)
downloadxorg-lib-libX11-844271305a28e87031562dfeb43defbea02960a2.tar.gz
reduce gcc-normal warnings using casts (no object change)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/WMProps.c')
-rw-r--r--src/WMProps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WMProps.c b/src/WMProps.c
index 3ccb654f..12b4b361 100644
--- a/src/WMProps.c
+++ b/src/WMProps.c
@@ -105,7 +105,7 @@ void XSetWMProperties (
textprop.value = (unsigned char *) hostName;
textprop.encoding = XA_STRING;
textprop.format = 8;
- textprop.nitems = len;
+ textprop.nitems = (unsigned long) len;
XSetWMClientMachine (dpy, w, &textprop);
/* set hints about how geometry and window manager interaction */
@@ -142,6 +142,6 @@ void XSetWMProperties (
if (locale)
XChangeProperty (dpy, w, XInternAtom(dpy, "WM_LOCALE_NAME", False),
XA_STRING, 8, PropModeReplace,
- (unsigned char *)locale, strlen(locale));
+ (unsigned char *)locale, (int) strlen(locale));
}