]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Add identifiers to RB declarations
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 24 Jul 2019 15:37:08 +0000 (11:37 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Wed, 31 Jul 2019 15:35:21 +0000 (11:35 -0400)
Checkpatch was complaining about the lack of identifiers here, so
added some.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
lib/typerb.h

index 4dc74afdca781eba06463f2fa07dadacdf626407..063d924be4647691c475dea15f14251c0356869f 100644 (file)
@@ -38,30 +38,30 @@ struct typed_rb_root {
        size_t count;
 };
 
-struct typed_rb_entry *typed_rb_insert(struct typed_rb_root *,
+struct typed_rb_entry *typed_rb_insert(struct typed_rb_root *rbt,
                struct typed_rb_entry *rbe,
                int (*cmpfn)(
                        const struct typed_rb_entry *a,
                        const struct typed_rb_entry *b));
-struct typed_rb_entry *typed_rb_remove(struct typed_rb_root *,
+struct typed_rb_entry *typed_rb_remove(struct typed_rb_root *rbt,
                                       struct typed_rb_entry *rbe);
-struct typed_rb_entry *typed_rb_find(struct typed_rb_root *,
+struct typed_rb_entry *typed_rb_find(struct typed_rb_root *rbt,
                const struct typed_rb_entry *rbe,
                int (*cmpfn)(
                        const struct typed_rb_entry *a,
                        const struct typed_rb_entry *b));
-struct typed_rb_entry *typed_rb_find_gteq(struct typed_rb_root *,
+struct typed_rb_entry *typed_rb_find_gteq(struct typed_rb_root *rbt,
                const struct typed_rb_entry *rbe,
                int (*cmpfn)(
                        const struct typed_rb_entry *a,
                        const struct typed_rb_entry *b));
-struct typed_rb_entry *typed_rb_find_lt(struct typed_rb_root *,
+struct typed_rb_entry *typed_rb_find_lt(struct typed_rb_root *rbt,
                const struct typed_rb_entry *rbe,
                int (*cmpfn)(
                        const struct typed_rb_entry *a,
                        const struct typed_rb_entry *b));
-struct typed_rb_entry *typed_rb_min(struct typed_rb_root *);
-struct typed_rb_entry *typed_rb_next(struct typed_rb_entry *);
+struct typed_rb_entry *typed_rb_min(struct typed_rb_root *rbt);
+struct typed_rb_entry *typed_rb_next(struct typed_rb_entry *rbe);
 
 #define _PREDECL_RBTREE(prefix)                                                \
 struct prefix ## _head { struct typed_rb_root rr; };                           \