mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
r8878@Kushana: nickm | 2006-09-21 17:15:47 -0400
Trivial whitespace cleanups. svn:r8443
This commit is contained in:
parent
6a1746f98f
commit
7c21dabef1
@ -207,7 +207,8 @@ _tor_memdup(const void *mem, size_t len DMALLOC_PARAMS)
|
|||||||
/** Helper for places that need to take a function pointer to the right
|
/** Helper for places that need to take a function pointer to the right
|
||||||
* spelling of "free()". */
|
* spelling of "free()". */
|
||||||
void
|
void
|
||||||
_tor_free(void *mem) {
|
_tor_free(void *mem)
|
||||||
|
{
|
||||||
tor_free(mem);
|
tor_free(mem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2448,7 +2448,7 @@ options_validate(or_options_t *old_options, or_options_t *options,
|
|||||||
#ifndef USE_EVENTDNS
|
#ifndef USE_EVENTDNS
|
||||||
if (options->ServerDNSResolvConfFile)
|
if (options->ServerDNSResolvConfFile)
|
||||||
log(LOG_WARN, LD_CONFIG,
|
log(LOG_WARN, LD_CONFIG,
|
||||||
"ServerDNSResolvConfFile only works when eventdns support is enabled.");
|
"ServerDNSResolvConfFile only works when eventdns support is enabled.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (check_nickname_list(options->ExitNodes, "ExitNodes", msg))
|
if (check_nickname_list(options->ExitNodes, "ExitNodes", msg))
|
||||||
|
@ -1522,7 +1522,8 @@ launch_resolve(edge_connection_t *exitconn)
|
|||||||
char *addr = tor_strdup(exitconn->_base.address);
|
char *addr = tor_strdup(exitconn->_base.address);
|
||||||
struct in_addr in;
|
struct in_addr in;
|
||||||
int r;
|
int r;
|
||||||
int options = get_options()->ServerDNSSearchDomains ? 0 : DNS_QUERY_NO_SEARCH;
|
int options = get_options()->ServerDNSSearchDomains ? 0
|
||||||
|
: DNS_QUERY_NO_SEARCH;
|
||||||
/* What? Nameservers not configured? Sounds like a bug. */
|
/* What? Nameservers not configured? Sounds like a bug. */
|
||||||
if (!nameservers_configured) {
|
if (!nameservers_configured) {
|
||||||
log_warn(LD_EXIT, "Harmless bug: nameservers not configured, but resolve "
|
log_warn(LD_EXIT, "Harmless bug: nameservers not configured, but resolve "
|
||||||
|
@ -936,8 +936,6 @@ run_scheduled_events(time_t now)
|
|||||||
crypto_rand_int(12*3600);
|
crypto_rand_int(12*3600);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct event *timeout_event = NULL;
|
static struct event *timeout_event = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user