[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8344: - got rid of tabs (tor/trunk/src/or)
Author: chiussi
Date: 2006-09-07 00:02:52 -0400 (Thu, 07 Sep 2006)
New Revision: 8344
Modified:
tor/trunk/src/or/dns.c
tor/trunk/src/or/eventdns.c
Log:
- got rid of tabs
Modified: tor/trunk/src/or/dns.c
===================================================================
--- tor/trunk/src/or/dns.c 2006-09-07 03:58:46 UTC (rev 8343)
+++ tor/trunk/src/or/dns.c 2006-09-07 04:02:52 UTC (rev 8344)
@@ -1292,9 +1292,9 @@
eventdns_clear_nameservers_and_suspend();
}
if (eventdns_config_windows_nameservers()) {
- log_warn(LD_EXIT,"Could not config nameservers.");
+ log_warn(LD_EXIT,"Could not config nameservers.");
return -1;
- }
+ }
if (eventdns_count_nameservers() == 0) {
log_warn(LD_EXIT, "Unable to find any platform nameservers in "
"your Windows configuration. Perhaps you should list a "
Modified: tor/trunk/src/or/eventdns.c
===================================================================
--- tor/trunk/src/or/eventdns.c 2006-09-07 03:58:46 UTC (rev 8343)
+++ tor/trunk/src/or/eventdns.c 2006-09-07 04:02:52 UTC (rev 8344)
@@ -1507,7 +1507,7 @@
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 @@
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 @@
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");