]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix compile error
authorRudolf Polzer <divverent@xonotic.org>
Thu, 25 Oct 2012 07:57:05 +0000 (09:57 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 25 Oct 2012 07:57:05 +0000 (09:57 +0200)
libs/l_net/l_net_berkley.c
libs/l_net/l_net_wins.c

index 020592568835a02be4382dce394d20b9288b97ff..ac618dd684002a966923c18f3780fc01ab3333ef 100644 (file)
@@ -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
        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)
 
        // if the quake hostname isn't set, set it to the machine name
 //     if (Q_strcmp(hostname.string, "UNNAMED") == 0)
index c56b17ed4f584ceab6f32b7957ffcecf451e8f8f..30ef9ac035d23cc39deb7cd5b8a547a8feafe3a0 100644 (file)
@@ -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
        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)
 
        // if the quake hostname isn't set, set it to the machine name
 //     if (Q_strcmp(hostname.string, "UNNAMED") == 0)