]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Align bgp_community.h to our standards
authorDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 13:11:07 +0000 (09:11 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 14:20:28 +0000 (10:20 -0400)
bgp_community.h has function declarations that are
not properly aligned with our standard on how
to do so.  Fix.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_community.h

index 6f0ae0235c3e74c9613507683d2b1dc9b6562794..616ddb4405b371228e4797558313e1c7b4a505c4 100644 (file)
@@ -72,25 +72,26 @@ struct community {
 extern void community_init(void);
 extern void community_finish(void);
 extern void community_free(struct community **comm);
-extern struct community *community_uniq_sort(struct community *);
-extern struct community *community_parse(uint32_t *, unsigned short);
-extern struct community *community_intern(struct community *);
-extern void community_unintern(struct community **);
-extern char *community_str(struct community *, bool make_json,
+extern struct community *community_uniq_sort(struct community *com);
+extern struct community *community_parse(uint32_t *pnt, unsigned short length);
+extern struct community *community_intern(struct community *com);
+extern void community_unintern(struct community **com);
+extern char *community_str(struct community *com, bool make_json,
                           bool translate_alias);
-extern unsigned int community_hash_make(const struct community *);
-extern struct community *community_str2com(const char *);
-extern bool community_match(const struct community *, const struct community *);
+extern unsigned int community_hash_make(const struct community *com);
+extern struct community *community_str2com(const char *str);
+extern bool community_match(const struct community *com1,
+                           const struct community *com2);
 extern bool community_cmp(const struct community *c1,
                          const struct community *c2);
-extern struct community *community_merge(struct community *,
-                                        struct community *);
-extern struct community *community_delete(struct community *,
-                                         struct community *);
-extern struct community *community_dup(struct community *);
-extern bool community_include(struct community *, uint32_t);
+extern struct community *community_merge(struct community *com1,
+                                        struct community *com2);
+extern struct community *community_delete(struct community *com1,
+                                         struct community *com2);
+extern struct community *community_dup(struct community *com);
+extern bool community_include(struct community *com, uint32_t val);
 extern void community_add_val(struct community *com, uint32_t val);
-extern void community_del_val(struct community *, uint32_t *);
+extern void community_del_val(struct community *com, uint32_t *val);
 extern unsigned long community_count(void);
 extern struct hash *community_hash(void);
 extern uint32_t community_val_get(struct community *com, int i);