smartlist_add(strs, s);
});
smartlist_add(strs, tor_strdup("\r\n.\r\n"));
+ /* XXX the above strdup has an extra \r\n in it, resulting in
+ * a blank line in the NS output. Can we remove it, or is that
+ * bad since the output of networkstatus_getinfo_helper_single()
+ * only adds \n, not \r\n? */
s = smartlist_join_strings(strs, "", 0, NULL);
SMARTLIST_FOREACH(strs, char *, cp, tor_free(cp));
typedef struct packed_cell_t packed_cell_t;
/** A cell as packed for writing to the network. */
struct packed_cell_t {
- struct packed_cell_t *next; /**< Next cell queued on a this circuit. */
+ struct packed_cell_t *next; /**< Next cell queued on this circuit. */
char body[CELL_NETWORK_SIZE]; /**< Cell as packed for network. */
};
/** A queue of cells on a circuit, waiting to be added to the
* or_connection_t's outbuf. */
typedef struct cell_queue_t {
- packed_cell_t *head; /**< The first cell, or NULL if the queue is empty */
- packed_cell_t *tail; /**< The last cell, or NULL if the queue is empty */
- int n; /**< The number of cells in the queue */
+ packed_cell_t *head; /**< The first cell, or NULL if the queue is empty. */
+ packed_cell_t *tail; /**< The last cell, or NULL if the queue is empty. */
+ int n; /**< The number of cells in the queue. */
} cell_queue_t;
/** Beginning of a RELAY cell payload. */
rend_cache_entry_t *e;
rend_service_descriptor_t *parsed;
char query[REND_SERVICE_ID_LEN+1];
- char key[REND_SERVICE_ID_LEN+2]; /* 1<query>\0 or 0<query>\0 */
+ char key[REND_SERVICE_ID_LEN+2]; /* 1<query>\0 or 0<query>\0 */
time_t now;
tor_assert(rend_cache);