rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free()
This commit is contained in:
@@ -7,7 +7,7 @@ struct session_pool
|
||||
struct session *sess;
|
||||
};
|
||||
|
||||
struct session_pool *session_pool_create(uint64_t count)
|
||||
struct session_pool *session_pool_new(uint64_t count)
|
||||
{
|
||||
struct session_pool *pool = (struct session_pool *)calloc(1, sizeof(struct session_pool) + count * sizeof(struct session));
|
||||
if (pool == NULL)
|
||||
@@ -27,7 +27,7 @@ struct session_pool *session_pool_create(uint64_t count)
|
||||
return pool;
|
||||
}
|
||||
|
||||
void session_pool_destroy(struct session_pool *pool)
|
||||
void session_pool_free(struct session_pool *pool)
|
||||
{
|
||||
if (pool)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user