diff options
author | Mike Chiussi <chiussi@gmail.com> | 2006-09-07 04:02:52 +0000 |
---|---|---|
committer | Mike Chiussi <chiussi@gmail.com> | 2006-09-07 04:02:52 +0000 |
commit | c40acb86f4b34fab25108acea3bf82ec24bf7d08 (patch) | |
tree | 76609884e7b5a2bcc5ffa1a48a3a559e2b4c352e /src/or/eventdns.c | |
parent | 3c85780e69befe3246331a9a9752a6506307dde3 (diff) | |
download | tor-c40acb86f4b34fab25108acea3bf82ec24bf7d08.tar.gz tor-c40acb86f4b34fab25108acea3bf82ec24bf7d08.zip |
- got rid of tabs
svn:r8344
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 0b030e6109..6b8544ed8b 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -1507,7 +1507,7 @@ out2: CLOSE_SOCKET(ns->socket); out1: free(ns); - log(EVENTDNS_LOG_WARN, "Unable to add nameserver %s: error %d", + log(EVENTDNS_LOG_WARN, "Unable to add nameserver %s: error %d", debug_ntoa(address), err); return err; } @@ -2062,10 +2062,10 @@ load_nameservers_with_getnetworkparams(void) IP_ADDR_STRING *ns; DWORD (WINAPI *fn)(FIXED_INFO*, DWORD*); - if (!(handle = LoadLibrary("iphlpapi.dll"))) + if (!(handle = LoadLibrary("iphlpapi.dll"))) goto done; - - if (!(fn = + + if (!(fn = (DWORD (WINAPI*)(FIXED_INFO*,DWORD*)) GetProcAddress(handle, "GetNetworkParams"))) { goto done; @@ -2154,19 +2154,18 @@ load_nameservers_from_registry(void) HKEY nt_key = 0, interfaces_key = 0; if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, - KEY_READ, &nt_key) != ERROR_SUCCESS){ + KEY_READ, &nt_key) != ERROR_SUCCESS){ log(EVENTDNS_LOG_DEBUG,"Couldn't open nt key, %d",(int)GetLastError()); return -1; + } - } r = RegOpenKeyEx(nt_key, "Interfaces", 0, KEY_QUERY_VALUE|KEY_ENUMERATE_SUB_KEYS, &interfaces_key); if (r != ERROR_SUCCESS ) { - log(EVENTDNS_LOG_DEBUG,"Couldn't open interfaces key, %d",(int)GetLastError()); + log(EVENTDNS_LOG_DEBUG,"Couldn't open interfaces key, %d",(int)GetLastError()); return -1; - } TRY(nt_key, "NameServer"); |