applied patch by xranby to remove warnings

This commit is contained in:
Brian Matzon 2011-10-13 22:05:17 +00:00
parent 0d0ffcbb59
commit 758849ad4c
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ static void setWindowTitle(Display *disp, Window window, jlong title, jint len)
XChangeProperty(disp, window,
XInternAtom(disp, "_NET_WM_NAME", False),
XInternAtom(disp, "UTF8_STRING", False),
8, PropModeReplace, (const char *)(intptr_t)title,
8, PropModeReplace, (const unsigned char *)(intptr_t)title,
len);
}

View File

@ -175,7 +175,7 @@ static void setWindowTitle(Display *disp, Window window, jlong title, jint len)
XChangeProperty(disp, window,
XInternAtom(disp, "_NET_WM_NAME", False),
XInternAtom(disp, "UTF8_STRING", False),
8, PropModeReplace, (const char *)(intptr_t)title,
8, PropModeReplace, (const unsigned char *)(intptr_t)title,
len);
}