rbtree: remove unused arguments from INIT macro.
This commit is contained in:
parent
b5f0c3117c
commit
d64f14af4e
4 changed files with 6 additions and 6 deletions
|
|
@ -31,8 +31,8 @@ static void wd_free(void *ptr);
|
|||
static int wd_cmp(const void *a, const void *b);
|
||||
static int path_cmp(const void *a, const void *b);
|
||||
|
||||
static rbtree tree_wd_paths = RBTREE_INIT(wd_free, NULL, wd_cmp);
|
||||
static rbtree tree_path_wd = RBTREE_INIT(xfree, NULL, path_cmp);
|
||||
static rbtree tree_wd_paths = RBTREE_INIT(wd_cmp);
|
||||
static rbtree tree_path_wd = RBTREE_INIT(path_cmp);
|
||||
|
||||
static int wd_cmp(const void *a, const void *b) {
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ typedef struct {
|
|||
int (*cmp_fn)(const void *, const void *);
|
||||
} rbtree;
|
||||
|
||||
#define RBTREE_INIT(delete, update, cmp) { NULL, cmp }
|
||||
#define RBTREE_INIT(cmp) { NULL, cmp }
|
||||
|
||||
int rbtree_is_empty(rbtree *tree);
|
||||
|
||||
|
|
|
|||
Reference in a new issue