uint64_t count; //!< Number of connections spawned over
//!< the lifetime of the pool.
uint32_t num; //!< Number of connections in the pool.
- int active; //!< Number of currently reserved
- //!< connections.
+ uint32_t active; //!< Number of currently reserved connections.
fr_connection_t *head; //!< Start of the connection list.
fr_connection_t *tail; //!< End of the connection list.
#endif
this->in_use = false;
- rad_assert(pool->active > 0);
+ rad_assert(pool->active != 0);
pool->active--;
}
}
}
- rad_assert(pool->active > 0);
+ rad_assert(pool->active != 0);
pool->active--;
DEBUG("%s: Released connection (%" PRIu64 ")", pool->log_prefix, this->number);