mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Whitespace fixes
This commit is contained in:
parent
dd572dac34
commit
c0568a89d9
@ -1891,7 +1891,6 @@ sandbox_cfg_allow_chown_filename(sandbox_cfg_t **cfg, char *file)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
sandbox_cfg_allow_chmod_filename(sandbox_cfg_t **cfg, char *file)
|
sandbox_cfg_allow_chmod_filename(sandbox_cfg_t **cfg, char *file)
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,8 @@ ddmap_entry_free(ddmap_entry_t *e)
|
|||||||
tor_free(e);
|
tor_free(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return a new empty ddmap_entry, with <b>n_votes</b> elements in vrs_list. */
|
/** Return a new empty ddmap_entry, with <b>n_votes</b> elements in
|
||||||
|
* vrs_list. */
|
||||||
static ddmap_entry_t *
|
static ddmap_entry_t *
|
||||||
ddmap_entry_new(int n_votes)
|
ddmap_entry_new(int n_votes)
|
||||||
{
|
{
|
||||||
|
@ -1822,7 +1822,8 @@ get_configured_bridge_by_addr_port_digest(const tor_addr_t *addr,
|
|||||||
* bridge with no known digest whose address matches <b>addr</b>:<b>port</b>,
|
* bridge with no known digest whose address matches <b>addr</b>:<b>port</b>,
|
||||||
* return 1. Else return 0. If <b>digest</b> is NULL, check for
|
* return 1. Else return 0. If <b>digest</b> is NULL, check for
|
||||||
* address/port matches only. */
|
* address/port matches only. */
|
||||||
int addr_is_a_configured_bridge(const tor_addr_t *addr,
|
int
|
||||||
|
addr_is_a_configured_bridge(const tor_addr_t *addr,
|
||||||
uint16_t port,
|
uint16_t port,
|
||||||
const char *digest)
|
const char *digest)
|
||||||
{
|
{
|
||||||
@ -1834,7 +1835,8 @@ int addr_is_a_configured_bridge(const tor_addr_t *addr,
|
|||||||
* <b>ei->identity_digest</b>, or a bridge with no known digest whose address
|
* <b>ei->identity_digest</b>, or a bridge with no known digest whose address
|
||||||
* matches <b>ei->addr</b>:<b>ei->port</b>, return 1. Else return 0.
|
* matches <b>ei->addr</b>:<b>ei->port</b>, return 1. Else return 0.
|
||||||
* If <b>ei->onion_key</b> is NULL, check for address/port matches only. */
|
* If <b>ei->onion_key</b> is NULL, check for address/port matches only. */
|
||||||
int extend_info_is_a_configured_bridge(const extend_info_t *ei)
|
int
|
||||||
|
extend_info_is_a_configured_bridge(const extend_info_t *ei)
|
||||||
{
|
{
|
||||||
const char *digest = ei->onion_key ? ei->identity_digest : NULL;
|
const char *digest = ei->onion_key ? ei->identity_digest : NULL;
|
||||||
return addr_is_a_configured_bridge(&ei->addr, ei->port, digest);
|
return addr_is_a_configured_bridge(&ei->addr, ei->port, digest);
|
||||||
|
@ -821,7 +821,6 @@ test_util_parse_http_time(void *arg)
|
|||||||
T("2038-02-17 06:13:20");
|
T("2038-02-17 06:13:20");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
tt_int_op(-1,OP_EQ, parse_http_time("2004-08-zz 99-99x99 GMT", &a_time));
|
tt_int_op(-1,OP_EQ, parse_http_time("2004-08-zz 99-99x99 GMT", &a_time));
|
||||||
tt_int_op(-1,OP_EQ, parse_http_time("2011-03-32 00:00:00 GMT", &a_time));
|
tt_int_op(-1,OP_EQ, parse_http_time("2011-03-32 00:00:00 GMT", &a_time));
|
||||||
tt_int_op(-1,OP_EQ, parse_http_time("2011-03-30 24:00:00 GMT", &a_time));
|
tt_int_op(-1,OP_EQ, parse_http_time("2011-03-30 24:00:00 GMT", &a_time));
|
||||||
|
Loading…
Reference in New Issue
Block a user