]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: fix macro style
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Nov 2020 16:13:47 +0000 (19:13 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Nov 2020 16:14:03 +0000 (19:14 +0300)
We prefer semicolon in the actual code instead of macro elsewhere in the
code.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_flowspec_util.c
lib/prefix.h

index 55e7973f817ecf54af9092fb5be1053da12c7c94..15b891f25a84b26b9b81bfb9c49df869ca06f4d8 100644 (file)
@@ -229,9 +229,9 @@ int bgp_flowspec_ip_address(enum bgp_flowspec_util_nlri_t type,
        case BGP_FLOWSPEC_CONVERT_TO_NON_OPAQUE:
                if (prefix) {
                        if (prefix_local.family == AF_INET)
-                               PREFIX_COPY_IPV4(prefix, &prefix_local)
+                               PREFIX_COPY_IPV4(prefix, &prefix_local);
                        else
-                               PREFIX_COPY_IPV6(prefix, &prefix_local)
+                               PREFIX_COPY_IPV6(prefix, &prefix_local);
                }
                break;
        case BGP_FLOWSPEC_VALIDATE_ONLY:
index d2cabf3104dd712f2f04c6476cdedb322d85d9ea..b7fdc263694f5920384495340e25764d11d9917c 100644 (file)
@@ -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 *);