(svn r111) -Fix: converted all linebreaks to UNIX-linebreak (\n)

This commit is contained in:
truelight
2004-08-22 15:56:56 +00:00
parent 8644360264
commit 309ebe5f3f
9 changed files with 2746 additions and 2746 deletions

View File

@@ -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) {