Fix pointer sign warning

This commit is contained in:
Henrik Andersson 2017-10-17 10:20:23 +02:00
parent f50e17ba9f
commit 797a28ed25

2
xwin.c
View File

@ -1860,7 +1860,7 @@ set_wm_client_machine(Display * dpy, Window win)
if (gethostname(hostname, sizeof(hostname)) != 0) if (gethostname(hostname, sizeof(hostname)) != 0)
return; return;
tp.value = hostname; tp.value = (unsigned char *)hostname;
tp.nitems = strlen(hostname); tp.nitems = strlen(hostname);
tp.encoding = XA_STRING; tp.encoding = XA_STRING;
tp.format = 8; tp.format = 8;