mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Renormalize whitespace
svn:r3757
This commit is contained in:
parent
fd150459b3
commit
97dad670ea
@ -767,7 +767,6 @@ void tor_gettimeofday(struct timeval *timeval) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
#if defined(TOR_IS_MULTITHREADED) && !defined(MS_WINDOWS)
|
||||
#define TIME_FNS_NEED_LOCKS
|
||||
#endif
|
||||
|
@ -206,7 +206,6 @@ char *get_user_homedir(const char *username);
|
||||
int spawn_func(int (*func)(void *), void *data);
|
||||
void spawn_exit(void);
|
||||
|
||||
|
||||
#if defined(MS_WINDOWS)
|
||||
#define USE_WIN32_THREADS
|
||||
#define TOR_IS_MULTITHREADED 1
|
||||
@ -234,6 +233,4 @@ unsigned long tor_get_thread_id(void);
|
||||
#define tor_get_thread_id() (1UL)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -645,7 +645,6 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#define CONTROL_CMD_FRAGMENTHEADER 0x0010
|
||||
#define CONTROL_CMD_FRAGMENT 0x0011
|
||||
/** If there is a complete control message waiting on buf, then store
|
||||
@ -759,4 +758,3 @@ void assert_buf_ok(buf_t *buf)
|
||||
tor_assert(buf->mem);
|
||||
tor_assert(buf->datalen <= buf->len);
|
||||
}
|
||||
|
||||
|
@ -1355,4 +1355,3 @@ onion_extend_cpath(crypt_path_t **head_ptr, cpath_build_state_t
|
||||
*router_out = choice;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1009,7 +1009,6 @@ connection_ap_handshake_attach_chosen_circuit(connection_t *conn,
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/** Try to find a safe live circuit for CONN_TYPE_AP connection conn. If
|
||||
* we don't find one: if conn cannot be handled by any known nodes,
|
||||
* warn and return -1 (conn needs to die);
|
||||
@ -1133,4 +1132,3 @@ int connection_ap_handshake_attach_circuit(connection_t *conn) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1243,7 +1243,6 @@ connection_t *connection_get_by_identity_digest(const char *digest, int type)
|
||||
return best;
|
||||
}
|
||||
|
||||
|
||||
/** Return the connection with id <b>id</b> if it is not already
|
||||
* marked for close.
|
||||
*/
|
||||
@ -1266,7 +1265,6 @@ connection_get_by_global_id(uint32_t id) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/** Return a connection of type <b>type</b> that is not marked for
|
||||
* close.
|
||||
*/
|
||||
@ -1675,4 +1673,3 @@ void assert_connection_ok(connection_t *conn, time_t now)
|
||||
tor_assert(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,6 @@ connection_edge_end_errno(connection_t *conn, crypt_path_t *cpath_layer)
|
||||
return connection_edge_end(conn, reason, cpath_layer);
|
||||
}
|
||||
|
||||
|
||||
/** Connection <b>conn</b> has finished writing and has no bytes left on
|
||||
* its outbuf.
|
||||
*
|
||||
@ -358,7 +357,6 @@ connection_ap_detach_retriable(connection_t *conn, circuit_t *circ)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** A client-side struct to remember requests to rewrite addresses
|
||||
* to new addresses. These structs make up a tree, with addressmap
|
||||
* below as its root.
|
||||
|
@ -669,7 +669,6 @@ static int handle_control_attachstream(connection_t *conn, uint32_t len,
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (!(circ = circuit_get_by_global_id(circ_id))) {
|
||||
send_control_error(conn, ERR_NO_CIRC, "No circuit found with given ID");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user