summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-11-18 19:13:47 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-11-18 19:14:03 +0300
commit65f18319c07428fce8d84d09db86e32a950bd8ab (patch)
tree2c05d9a1b40dc47de2276199004ee7159d1ca196 /lib/prefix.h
parent55b2b5ab9975d0e63467d87305d22a0a8ad69657 (diff)
lib: fix macro style
We prefer semicolon in the actual code instead of macro elsewhere in the code. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index d2cabf3104..b7fdc26369 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -479,7 +479,7 @@ extern void apply_mask_ipv4(struct prefix_ipv4 *);
#define PREFIX_COPY(DST, SRC) \
*((struct prefix *)(DST)) = *((const struct prefix *)(SRC))
#define PREFIX_COPY_IPV4(DST, SRC) \
- *((struct prefix_ipv4 *)(DST)) = *((const struct prefix_ipv4 *)(SRC));
+ *((struct prefix_ipv4 *)(DST)) = *((const struct prefix_ipv4 *)(SRC))
extern int prefix_ipv4_any(const struct prefix_ipv4 *);
extern void apply_classful_mask_ipv4(struct prefix_ipv4 *);
@@ -499,7 +499,7 @@ extern int str2prefix_ipv6(const char *, struct prefix_ipv6 *);
extern void apply_mask_ipv6(struct prefix_ipv6 *);
#define PREFIX_COPY_IPV6(DST, SRC) \
- *((struct prefix_ipv6 *)(DST)) = *((const struct prefix_ipv6 *)(SRC));
+ *((struct prefix_ipv6 *)(DST)) = *((const struct prefix_ipv6 *)(SRC))
extern int ip6_masklen(struct in6_addr);
extern void masklen2ip6(const int, struct in6_addr *);