openbsd-ports/x11/icewm/patches/patch-src_wmapp_cc
2010-12-12 19:13:01 +00:00

22 lines
828 B
Plaintext

$OpenBSD: patch-src_wmapp_cc,v 1.8 2010/12/12 19:13:01 jasper Exp $
--- src/wmapp.cc.orig Sun Oct 31 15:09:36 2010
+++ src/wmapp.cc Thu Dec 9 16:20:33 2010
@@ -219,7 +219,7 @@ static void registerProtocols2(Window xid) {
PropModeReplace, (unsigned char *)win_proto, i);
#endif
- pid_t pid = getpid();
+ long pid = long(getpid());
const char wmname[] = "IceWM "VERSION" ("HOSTOS"/"HOSTCPU")";
#ifdef GNOME1_HINTS
@@ -337,7 +337,7 @@ static void initFontPath() {
char ** fontPath(XGetFontPath(xapp->display(), &ndirs));
char ** newFontPath = new char *[ndirs + 1];
- newFontPath[ndirs] = fontsdir;
+ newFontPath[ndirs] = (char *)fontsdir;
if (fontPath)
memcpy(newFontPath, fontPath, ndirs * sizeof (char *));