Changeset - r9851:c4a40d66b816
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-08-04 18:27:54
rubidium@openttd.org
(svn r13995) -Fix (r13988): some warnings of the compile farm.
1 file changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/network/core/host.cpp
Show inline comments
 
@@ -43,14 +43,14 @@ static int NetworkFindBroadcastIPsIntern
 

	
 
	if (sock < 0) {
 
		DEBUG(net, 0, "[core] error creating socket");
 
		return;
 
		return 0;
 
	}
 

	
 
	char *output_pointer = NULL;
 
	int output_length = _netstat(sock, &output_pointer, 1);
 
	if (output_length < 0) {
 
		DEBUG(net, 0, "[core] error running _netstat");
 
		return;
 
		return 0;
 
	}
 

	
 
	int index;
 
@@ -155,7 +155,7 @@ static int NetworkFindBroadcastIPsIntern
 
	}
 

	
 
	const char *buf_end = buf + ifconf.ifc_len;
 
	int index;
 
	int index = 0;
 
	for (const char *p = buf; p < buf_end && index != 0;) {
 
		const struct ifreq* req = (const struct ifreq*)p;
 

	
 
@@ -177,6 +177,8 @@ static int NetworkFindBroadcastIPsIntern
 
	}
 

	
 
	closesocket(sock);
 
	
 
	return index;
 
}
 
#endif /* all NetworkFindBroadcastIPsInternals */
 

	
0 comments (0 inline, 0 general)