diff options
author | truelight <truelight@openttd.org> | 2004-08-22 15:56:56 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-08-22 15:56:56 +0000 |
commit | 309ebe5f3f998a22e4f128728064227271ea0d98 (patch) | |
tree | 7a2fb0308e3d02fb0bfdd38b7a6d24286a7050ca /network.c | |
parent | 86443602642a467ac3219a5da5d08ee0cc99de72 (diff) | |
download | openttd-309ebe5f3f998a22e4f128728064227271ea0d98.tar.xz |
(svn r111) -Fix: converted all linebreaks to UNIX-linebreak (\n)
Diffstat (limited to 'network.c')
-rw-r--r-- | network.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1252,14 +1252,14 @@ void NetworkIPListInit() { gethostname(hostname,250); DEBUG(misc,2) ("[NET][IP] init for host %s", hostname); he=gethostbyname((char *) hostname); -
- if (he == NULL) {
- he = gethostbyname("localhost");
- }
-
- if (he == NULL) {
- bcaddr = inet_addr("127.0.0.1");
- he = gethostbyaddr(inet_ntoa(*(struct in_addr *) &bcaddr), sizeof(bcaddr), AF_INET);
+ + if (he == NULL) { + he = gethostbyname("localhost"); + } + + if (he == NULL) { + bcaddr = inet_addr("127.0.0.1"); + he = gethostbyaddr(inet_ntoa(*(struct in_addr *) &bcaddr), sizeof(bcaddr), AF_INET); } if (he == NULL) { |