aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-08 21:25:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-08 21:25:11 +0000
commit80197cf493bc4c4d18da83982c9f3fce860e57bb (patch)
treec6c78da6eb3b445cd1eed2cac0e6a280949df62c /ares
parent8ee564c216d597c1f26cbd4fc0bdc243fcc3e166 (diff)
James Bursa fixed a RISC OS init issue, removed trailing whitespace
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_init.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index c0c621bd7..9ac8768ed 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -324,7 +324,7 @@ DhcpNameServer
status = ARES_EFILE;
- if (IsNT)
+ if (IsNT)
{
if (RegOpenKeyEx(
HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0,
@@ -368,7 +368,7 @@ DhcpNameServer
if ((result = RegQueryValueEx(
mykey, NAMESERVER, NULL, &data_type,
NULL, &bytes
- )
+ )
) == ERROR_SUCCESS ||
result == ERROR_MORE_DATA)
{
@@ -384,10 +384,10 @@ DhcpNameServer
free(line);
}
}
- }
+ }
RegCloseKey(mykey);
}
-
+
if (status != ARES_EFILE)
{
/*
@@ -404,7 +404,7 @@ DhcpNameServer
system variable Inet$Resolvers, space separated. */
line = getenv("Inet$Resolvers");
- status = ARES_EFILE;
+ status = ARES_EOF;
if (line) {
char *resolvers = strdup(line), *pos, *space;
@@ -424,7 +424,7 @@ DhcpNameServer
if (status == ARES_SUCCESS)
status = ARES_EOF;
-
+
free(resolvers);
}
@@ -433,7 +433,7 @@ DhcpNameServer
char *p;
FILE *fp;
int linesize;
-
+
fp = fopen(PATH_RESOLV_CONF, "r");
if (!fp)
return (errno == ENOENT) ? ARES_SUCCESS : ARES_EFILE;