1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/editors/zoinks/files/patch-fw-TApplication.cpp
Martin Wilke 9fe1834c7a - Unbreak
- Fix build with gcc 4.2

PR:		117776
Submitted by:	pietro cerutti <gahr@gahr.ch>
Approved by:	portmgr (pav)
2007-11-05 10:04:15 +00:00

23 lines
719 B
C++

--- fw/TApplication.cpp.orig 2003-05-15 23:33:23.000000000 +0200
+++ fw/TApplication.cpp 2007-11-04 22:30:57.000000000 +0100
@@ -163,8 +163,8 @@
fLeaderWindow = XCreateSimpleWindow(fDisplay, GetRootWindow(), 10, 10, 10, 10, 0, 0, 0);
XClassHint* classHint = XAllocClassHint();
- classHint->res_name = "Zoinks";
- classHint->res_class = "ZOINKS";
+ classHint->res_name = (char *)"Zoinks";
+ classHint->res_class = (char *)"ZOINKS";
XWMHints* wmHints = NULL;
TPixmap* icon = GetIcon();
@@ -1154,7 +1154,7 @@
}
// exec the shell
- err = execl("/bin/sh", "sh", "-c", commandLine, NULL);
+ err = execl("/bin/sh", "sh", "-c", commandLine, (char *)NULL);
ASSERT(0); // should never get here
}