static int packet_entry_cmp(void const *one, void const *two) { RADIUS_PACKET const * const *a = one; RADIUS_PACKET const * const *b = two; return fr_packet_cmp(*a, *b); }
static int packet_entry_cmp(const void *one, const void *two) { const RADIUS_PACKET * const *a = one; const RADIUS_PACKET * const *b = two; if (!a || !*a || !b || !*b) return -1; /* work-around for bug #35 */ return fr_packet_cmp(*a, *b); }
/** Wrapper around fr_packet_cmp to strip off the outer request struct * */ static int rs_packet_cmp(rs_request_t const *a, rs_request_t const *b) { return fr_packet_cmp(a->packet, b->packet); }