]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pim.c
Fix warnings when building for 32-bit and defining _TIME_BITS=64
[tcpdump] / print-pim.c
index dc9ca401f9de7f913aa810ad4f311e4a56857262..1ec930601c8d57d9782768c90d4ba2c056f79f8e 100644 (file)
@@ -137,7 +137,7 @@ static const struct tok pimv2_df_election_flag_values[] = {
 
 /*
  * XXX: We consider a case where IPv6 is not ready yet for portability,
- * but PIM dependent defintions should be independent of IPv6...
+ * but PIM dependent definitions should be independent of IPv6...
  */
 
 struct pim {
@@ -599,8 +599,7 @@ pimv2_addr_print(netdissect_options *ndo,
                if (af == AF_INET) {
                        if (!silent)
                                ND_PRINT("%s", GET_IPADDR_STRING(bp));
-               }
-               else if (af == AF_INET6) {
+               } else if (af == AF_INET6) {
                        if (!silent)
                                ND_PRINT("%s", GET_IP6ADDR_STRING(bp));
                }
@@ -616,8 +615,7 @@ pimv2_addr_print(netdissect_options *ndo,
                                if (GET_U_1(bp + 1) != 32)
                                        ND_PRINT("/%u", GET_U_1(bp + 1));
                        }
-               }
-               else if (af == AF_INET6) {
+               } else if (af == AF_INET6) {
                        if (!silent) {
                                ND_PRINT("%s", GET_IP6ADDR_STRING(bp + 2));
                                if (GET_U_1(bp + 1) != 128)