summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-08-22 15:56:56 +0000
committertruelight <truelight@openttd.org>2004-08-22 15:56:56 +0000
commit309ebe5f3f998a22e4f128728064227271ea0d98 (patch)
tree7a2fb0308e3d02fb0bfdd38b7a6d24286a7050ca /network.c
parent86443602642a467ac3219a5da5d08ee0cc99de72 (diff)
downloadopenttd-309ebe5f3f998a22e4f128728064227271ea0d98.tar.xz
(svn r111) -Fix: converted all linebreaks to UNIX-linebreak (\n)
Diffstat (limited to 'network.c')
-rw-r--r--network.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/network.c b/network.c
index 5c664afe4..d2b758bf2 100644
--- a/network.c
+++ b/network.c
@@ -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) {