> It then fails on:
> 
> proto_register_field_array (proto_abc, hf, array_length (hf));
> 
> Here is the hf array construction, can anyone see what the error is?
> 
>     static hf_register_info hf[] = {
 >

>         { &hf_abc_txPower,
>             { "txPower", "abc.txPower",
>             FT_UINT8, BASE_DEC,
>             "Transmit power for message in dBm",
>             0x0, NULL, HFILL }
>         },

should be

          { &hf_abc_txPower,
              { "txPower", "abc.txPower",
              FT_UINT8, BASE_DEC, NULL, 0x0,
              "Transmit power for message in dBm", HFILL }
          },

Stepping through the code (eg: proto_register-field_array) is the way to 
find bugs like this.


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to