/** Cast a given double value to a int64_t. Return 0 if number is NaN.
* Returns either INT64_MIN or INT64_MAX if number is outside of the int64_t
* range. */
-int64_t clamp_double_to_int64(double number)
+int64_t
+clamp_double_to_int64(double number)
{
int exp;
/* Handle infinities and finite numbers with magnitude >= 2^63. */
return signbit(number) ? INT64_MIN : INT64_MAX;
}
+
/** A list of all the circuits in CIRCUIT_STATE_CHAN_WAIT. */
static smartlist_t *circuits_pending_chans = NULL;
-/** A list of all the circuits that have been marked with circuit_mark_for_close
- * and which are waiting for circuit_about_to_free(). */
+/** A list of all the circuits that have been marked with
+ * circuit_mark_for_close and which are waiting for circuit_about_to_free. */
static smartlist_t *circuits_pending_close = NULL;
static void circuit_free_cpath_node(crypt_path_t *victim);
connection_edge_destroy(circ->n_circ_id, conn);
ocirc->p_streams = NULL;
}
-
}
/** Given a marked circuit <b>circ</b>, aggressively free its cell queues to