• Guy Harris's avatar
    Fix the type of arrays of pointers to hf_ values for bitfield routines. · e1d9a226
    Guy Harris authored
    The static arrays are supposed to be arrays of const pointers to int,
    not arrays of non-const pointers to const int.
    
    Fixing that means some bugs (scribbling on what's *supposed* to be a
    const array) will be caught (see packet-ieee80211-radiotap.c for
    examples, the first of which inspired this change and the second of
    which was discovered while testing compiles with this change), and
    removes the need for some annoying casts.
    
    Also make some of those arrays static while we're at it.
    
    Update documentation and dissector-generator tools.
    
    Change-Id: I789da5fc60aadc15797cefecfd9a9fbe9a130ccc
    Reviewed-on: https://code.wireshark.org/review/37517
    
    
    Petri-Dish: Guy Harris <gharris@sonic.net>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: AndersBroman's avatarAnders Broman <a.broman58@gmail.com>
    e1d9a226
packet-drda.c 36.9 KB