Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sun Oct 04, 2009 19:16 Post subject: Fix to nwnx_mnx to make build succeed on GCC 4.4+ |
|
|
Code: | --- NWNXmnx.cpp.old 2009-10-03 21:46:38.000000000 +0100
+++ NWNXmnx.cpp 2009-10-04 18:12:05.000000000 +0100
@@ -45,10 +45,11 @@
bool CNWNXmnx::ClientInit(const char *cname, const char *dest) {
- int rc, len;;
+ int rc, len;
struct sockaddr_in cliAddr;
struct hostent *h;
- char *pStr, hostname[128];
+ const char *pStr;
+ char hostname[128];
short port;
connection conn; |
Removed a redundant semicolon (which I noticed in the patch I originally created), and corrected the constness of pStr. See this thread. |
|