Wireshark-commits: [Wireshark-commits] rev 48717: /trunk/ /trunk/: ws80211_utils.c

Date: Wed, 03 Apr 2013 08:10:55 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=48717

User: guy
Date: 2013/04/03 01:10 AM

Log:
 Add a bunch of casts to squelch -Wc++-compat warnings.
 
 Don't assume that enum nl80211_channel_type and enum
 ws80211_channel_type happen to have matching values, map between them,
 and always assign the right enum value to the right type.  This is safer
 (yes, they do happen to have matching values, but it's not very clean to
 assume that), and also eliminates some -Wc++-compat warnings.

Directory: /trunk/
  Changes    Path               Action
  +55 -14    ws80211_utils.c    Modified