mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
r13111@catbus: nickm | 2007-05-31 15:03:41 -0400
Cleanup whitespace. svn:r10425
This commit is contained in:
parent
71c0a13703
commit
534c55f531
@ -1002,7 +1002,6 @@ tor_inet_pton(int af, const char *src, void *dst)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/** Similar behavior to Unix gethostbyname: resolve <b>name</b>, and set
|
||||
* *addr to the proper IP address, in network byte order. Returns 0
|
||||
* on success, -1 on failure; 1 on transient failure.
|
||||
|
@ -135,7 +135,7 @@ struct mp_chunk_t {
|
||||
*/
|
||||
mp_allocated_t *first_free;
|
||||
int n_allocated; /**< Number of currently allocated items in this chunk. */
|
||||
int capacity; /**< Largest number of items that can be fit into this chunk. */
|
||||
int capacity; /**< Number of items that can be fit into this chunk. */
|
||||
size_t mem_size; /**< Number of usable bytes in mem. */
|
||||
char *next_mem; /**< Pointer into part of <b>mem</b> not yet carved up. */
|
||||
char mem[1]; /**< Storage for this chunk. (Not actual size.) */
|
||||
|
@ -1365,7 +1365,7 @@ connection_ap_handshake_rewrite_and_attach(edge_connection_t *conn,
|
||||
conn, circ, cpath) < 0) ||
|
||||
(!circ &&
|
||||
connection_ap_handshake_attach_circuit(conn) < 0)) {
|
||||
connection_mark_unattached_ap(conn, END_STREAM_REASON_CANT_ATTACH);//xxxdup
|
||||
connection_mark_unattached_ap(conn, END_STREAM_REASON_CANT_ATTACH);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -1862,7 +1862,6 @@ generate_networkstatus_opinion(int v2)
|
||||
!tor_version_as_new_as(ri->platform,"0.1.1.16-rc-cvs");
|
||||
memset(&rs, 0, sizeof(rs));
|
||||
|
||||
|
||||
/* Already set by compute_performance_thresholds. */
|
||||
rs.is_exit = ri->is_exit;
|
||||
rs.is_stable = ri->is_stable =
|
||||
|
@ -310,7 +310,6 @@ test_buffers(void)
|
||||
test_memeq(str, (char*)_buf_peek_raw_buffer(buf), 10); /* XXX Check rest. */
|
||||
test_eq(eof, 0);
|
||||
|
||||
|
||||
i = read_to_buf(s, 1024, buf, &eof);
|
||||
test_eq(i, 0);
|
||||
test_eq(buf_capacity(buf), MAX_BUF_SIZE);
|
||||
@ -1011,7 +1010,7 @@ _test_eq_ip6(struct in6_addr *a, struct in6_addr *b, const char *e1,
|
||||
r = tor_inet_pton(AF_INET6, b, &a2); \
|
||||
test_assert(r==1); \
|
||||
test_eq_ip6(&a1,&a2); \
|
||||
} while(0)
|
||||
} while (0)
|
||||
|
||||
#define test_pton6_bad(a) \
|
||||
test_eq(0, tor_inet_pton(AF_INET6, a, &a1))
|
||||
|
Loading…
Reference in New Issue
Block a user