r1237 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Dec 14 11:25:33 EST 2007


Author: thilo
Date: 2007-12-14 11:25:33 -0500 (Fri, 14 Dec 2007)
New Revision: 1237

Modified:
   trunk/code/qcommon/net_ip.c
Log:
Replace obsolete macro with some other macro. I hope this does not break too much.


Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c	2007-12-13 23:27:41 UTC (rev 1236)
+++ trunk/code/qcommon/net_ip.c	2007-12-14 16:25:33 UTC (rev 1237)
@@ -756,7 +756,7 @@
 					if (sdl->sdl_type != IFT_LOOP) {
 						// Get the local interface address
 						strncpy(ifr.ifr_name, inetInterface->ifr_name, sizeof(ifr.ifr_name));
-						if (ioctl(interfaceSocket, OSIOCGIFADDR, (caddr_t)&ifr) < 0) {
+						if (ioctl(interfaceSocket, SIOCGIFADDR, (caddr_t)&ifr) < 0) {
 							Com_Printf("NET_GetLocalAddress: Unable to get local address "
 									"for interface '%s', errno = %d\n", inetInterface->ifr_name, errno);
 						} else {




More information about the quake3-commits mailing list