]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Attempt to squelch a warning from the SGI C compiler.
authorguy <guy>
Wed, 20 Apr 2005 19:32:16 +0000 (19:32 +0000)
committerguy <guy>
Wed, 20 Apr 2005 19:32:16 +0000 (19:32 +0000)
print-802_11.c

index 0b1798282dc1cf48055a81ec5b608e4837ec5c5e..81abc64141ad3066185912d6f07e7f085c665305 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-802_11.c,v 1.31 2004-11-04 07:35:53 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-802_11.c,v 1.32 2005-04-20 19:32:16 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -1100,7 +1100,8 @@ ieee802_11_radio_print(const u_char *p, u_int length, u_int caplen)
                        next_present = present & (present - 1);
 
                        /* extract the least significant bit that is set */
-                       bit = bit0 + BITNO_32(present ^ next_present);
+                       bit = (enum ieee80211_radiotap_type)
+                           (bit0 + BITNO_32(present ^ next_present));
 
                        if (print_radiotap_field(&cpacker, bit) != 0)
                                goto out;