Wireshark mailing list archives

Re: Is it just me? (build error in packet-q708.c)


From: Jakub Zawadzki <darkjames () darkjames ath cx>
Date: Wed, 19 May 2010 16:07:31 +0200

On Wed, May 19, 2010 at 02:56:52PM +0100, Martin Mathieson wrote:
        { &hf_q708_sanc,
                { "Signalling Area Network Code (SANC)","q708.sanc",
-               FT_UINT16, BASE_DEC | BASE_EXT_STRING,
VALS(&q708_sanc_areas_ext), 0x0,
+               FT_UINT16, BASE_DEC | BASE_EXT_STRING,
VALS(&q708_sanc_areas_ext.vals), 0x0,
                NULL, HFILL }
        },

This patch is wrong, proper way IMHO is to remove VALS() cast, i.e.

-  FT_UINT16, BASE_DEC | BASE_EXT_STRING, VALS(&q708_sanc_areas_ext), 0x0,
+  FT_UINT16, BASE_DEC | BASE_EXT_STRING, &q708_sanc_areas_ext, 0x0,

Regards.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: