From 646e93a73b62344aa81d4858c94721c98ad1e939 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 25 Oct 2012 09:57:05 +0200 Subject: [PATCH] fix compile error --- libs/l_net/l_net_berkley.c | 2 +- libs/l_net/l_net_wins.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/l_net/l_net_berkley.c b/libs/l_net/l_net_berkley.c index 02059256..ac618dd6 100644 --- a/libs/l_net/l_net_berkley.c +++ b/libs/l_net/l_net_berkley.c @@ -176,7 +176,7 @@ int WINS_Init( void ){ if(local && local->h_addr_list && local->h_addr_list[0]) myAddr = *(int *)local->h_addr_list[0]; else - myAddr = inet_ntoa("127.0.0.1"); + myAddr = inet_addr("127.0.0.1"); // if the quake hostname isn't set, set it to the machine name // if (Q_strcmp(hostname.string, "UNNAMED") == 0) diff --git a/libs/l_net/l_net_wins.c b/libs/l_net/l_net_wins.c index c56b17ed..30ef9ac0 100644 --- a/libs/l_net/l_net_wins.c +++ b/libs/l_net/l_net_wins.c @@ -199,7 +199,7 @@ int WINS_Init( void ){ if(local && local->h_addr_list && local->h_addr_list[0]) myAddr = *(int *)local->h_addr_list[0]; else - myAddr = inet_ntoa("127.0.0.1"); + myAddr = inet_addr("127.0.0.1"); // if the quake hostname isn't set, set it to the machine name // if (Q_strcmp(hostname.string, "UNNAMED") == 0) -- 2.39.2