logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Fix to nwnx_mnx to make build succeed on GCC 4.4+

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Sun Oct 04, 2009 19:16    Post subject: Fix to nwnx_mnx to make build succeed on GCC 4.4+ Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group