URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=695fbb9be0122e280755c11b9e0b89e9e256875b
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
695fbb9 by Guy Harris (guy@xxxxxxxxxxxx):
Squelch some casting-away-constness warnings.
In true_false_string_from_table(), keep the pointers to the "true" and
"false" strings in local non-const pointer variables, so we can free
them without a complaint.
Only when we're finished, and have valid "true" and "false" strings, do
we allocate the true_false_string structure and fill it in with those
pointers.
Change-Id: I6eb3ee46bdc47bf42d6e913c72884f0eac22997e
Reviewed-on: https://code.wireshark.org/review/26353
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from e7cf995 Squelch some casting-away-const warnings.
adds 695fbb9 Squelch some casting-away-constness warnings.
Summary of changes:
epan/wslua/wslua_proto_field.c | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)