diff options
Diffstat (limited to 'common/utils.c')
-rw-r--r-- | common/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/utils.c b/common/utils.c index 6803941..f66d889 100644 --- a/common/utils.c +++ b/common/utils.c @@ -65,6 +65,11 @@ void fdlist_free(struct fdlist *list) list->fds = NULL; } +void fdlist_reset(struct fdlist *list) +{ + list->count = 0; +} + void collection_init(struct collection *col) { col->list = malloc(sizeof(void *)); |