diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/command.c | 2 | ||||
| -rw-r--r-- | lib/ipaddr.h | 2 | ||||
| -rw-r--r-- | lib/json.h | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/command.c b/lib/command.c index 73bb9580cd..18426e0c51 100644 --- a/lib/command.c +++ b/lib/command.c @@ -149,7 +149,7 @@ const char *node_names[] = { "bfd", /* BFD_NODE */ "bfd peer", /* BFD_PEER_NODE */ "openfabric", // OPENFABRIC_NODE - "vrrp", // VRRP_NODE + "vrrp", /* VRRP_NODE */ }; /* clang-format on */ diff --git a/lib/ipaddr.h b/lib/ipaddr.h index 503431a7c0..1c2399fdd3 100644 --- a/lib/ipaddr.h +++ b/lib/ipaddr.h @@ -57,7 +57,7 @@ struct ipaddr { #define SET_IPADDR_V6(p) (p)->ipa_type = IPADDR_V6 #define IPADDRSZ(p) \ - IS_IPADDR_V4((p)) ? sizeof(struct in_addr) : sizeof(struct in6_addr) + (IS_IPADDR_V4((p)) ? sizeof(struct in_addr) : sizeof(struct in6_addr)) static inline int str2ipaddr(const char *str, struct ipaddr *ip) { diff --git a/lib/json.h b/lib/json.h index b35f221b99..c4d566b318 100644 --- a/lib/json.h +++ b/lib/json.h @@ -61,7 +61,8 @@ extern void json_object_string_add(struct json_object *obj, const char *key, const char *s); extern void json_object_int_add(struct json_object *obj, const char *key, int64_t i); -void json_object_boolean_add(struct json_object *obj, const char *key, bool val); +void json_object_boolean_add(struct json_object *obj, const char *key, + bool val); extern void json_object_boolean_false_add(struct json_object *obj, const char *key); extern void json_object_boolean_true_add(struct json_object *obj, |
