Add free_address_wmem(), fix warnings [-Wcast-qual]
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>
Thu, 26 Nov 2015 04:44:52 +0000 (04:44 +0000)
committerJoão Valverde <j@v6e.pt>
Fri, 26 Feb 2016 23:09:43 +0000 (23:09 +0000)
commite4c059f67f3b29bcc26b1faf111bf647ac630e04
tree8ec634d7614f7a32c09c5cdb60d7509fc2dd2208
parent92537916483ec721a638cdd7c416d099a45a9304
Add free_address_wmem(), fix warnings [-Wcast-qual]

Try to improve address API and also fix some constness warnings
by not overloading the 'data' pointer to store malloc'ed buffers
(use private pointer for that instead).

Second try, now passing test suite.

Change-Id: Idc101cd866b6d4f13500c9d59da5c7a38847fb7f
Reviewed-on: https://code.wireshark.org/review/13946
Petri-Dish: João Valverde <j@v6e.pt>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
56 files changed:
asn1/nbap/nbap.cnf
asn1/nbap/packet-nbap-template.c
asn1/t38/packet-t38-template.c
epan/address.h
epan/conversation_table.c
epan/dissectors/packet-dcerpc.c
epan/dissectors/packet-dcom.c
epan/dissectors/packet-dvbci.c
epan/dissectors/packet-enip.c
epan/dissectors/packet-forces.c
epan/dissectors/packet-ftp.c
epan/dissectors/packet-ieee802154.c
epan/dissectors/packet-isakmp.c
epan/dissectors/packet-jxta.c
epan/dissectors/packet-lbtrm.c
epan/dissectors/packet-lbtru.c
epan/dissectors/packet-lbttcp.c
epan/dissectors/packet-maccontrol.c
epan/dissectors/packet-mgcp.c
epan/dissectors/packet-ms-mms.c
epan/dissectors/packet-msrp.c
epan/dissectors/packet-nbap.c
epan/dissectors/packet-openflow_v4.c
epan/dissectors/packet-openflow_v5.c
epan/dissectors/packet-radius.c
epan/dissectors/packet-rdt.c
epan/dissectors/packet-rpc.c
epan/dissectors/packet-rtcp.c
epan/dissectors/packet-rtp.c
epan/dissectors/packet-sdp.c
epan/dissectors/packet-sflow.c
epan/dissectors/packet-sprt.c
epan/dissectors/packet-ssl-utils.c
epan/dissectors/packet-t38.c
epan/dissectors/packet-teamspeak2.c
epan/dissectors/packet-uma.c
epan/dissectors/packet-vuze-dht.c
epan/packet.c
epan/reassemble.c
epan/wslua/wslua_address.c
epan/wslua/wslua_field.c
epan/wslua/wslua_tvb.c
plugins/irda/packet-irda.c
plugins/unistim/packet-unistim.c
plugins/wimax/mac_hd_generic_decoder.c
plugins/wimax/packet-wmx.c
ui/cli/tap-comparestat.c
ui/gtk/compare_stat.c
ui/gtk/follow_stream.c
ui/gtk/graph_analysis.c
ui/gtk/rtp_player.c
ui/gtk/rtp_stream_dlg.c
ui/gtk/wlan_stat_dlg.c
ui/tap-sctp-analysis.c
ui/tap-sequence-analysis.c
ui/voip_calls.c