]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib, zebra: Fix warnings
authorvivek <vivek@cumulusnetworks.com>
Thu, 1 Mar 2018 19:50:46 +0000 (19:50 +0000)
committervivek <vivek@cumulusnetworks.com>
Thu, 1 Mar 2018 19:50:46 +0000 (19:50 +0000)
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
lib/ipaddr.h
zebra/zserv.c

index 3857b83027316b719f9730e07eed84d6d0c97f35..e8dbe9cf09d4b6180a36fed0e8859689c7ec98e0 100644 (file)
@@ -90,6 +90,7 @@ static inline void ipv4_to_ipv4_mapped_ipv6(struct in6_addr *in6,
                                            struct in_addr in)
 {
        u_int32_t addr_type = htonl(0xFFFF);
+
        memset(in6, 0, sizeof(struct in6_addr));
        memcpy((char *)in6 + 8, &addr_type, sizeof(addr_type));
        memcpy((char *)in6 + 12, &in, sizeof(struct in_addr));
index 983b04ed91778448a64008b87e9fc6a2c1f6c48d..1fc2bfd309bfa8d541e530a856c2eefd84fefb6e 100644 (file)
@@ -1190,7 +1190,7 @@ static int zread_route_add(struct zserv *client, u_short length,
                                        re->vrf_id);
 
                                /* if this an EVPN route entry,
-                                  program the nh as neigh
+                                * program the nh as neigh
                                 */
                                if (CHECK_FLAG(api.flags,
                                               ZEBRA_FLAG_EVPN_ROUTE)) {
@@ -1226,7 +1226,7 @@ static int zread_route_add(struct zserv *client, u_short length,
                                        re->vrf_id);
 
                                /* if this an EVPN route entry,
-                                  program the nh as neigh
+                                * program the nh as neigh
                                 */
                                if (CHECK_FLAG(api.flags,
                                               ZEBRA_FLAG_EVPN_ROUTE)) {