URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=695fbb9be0122e280755c11b9e0b89e9e256875b Submitter: Guy Harris (g...@alum.mit.edu) Changed: branch: master Repository: wireshark
Commits: 695fbb9 by Guy Harris (g...@alum.mit.edu): 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 <g...@alum.mit.edu> 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(-) ___________________________________________________________________________ Sent via: Wireshark-commits mailing list <wireshark-commits@wireshark.org> Archives: https://www.wireshark.org/lists/wireshark-commits Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-commits mailto:wireshark-commits-requ...@wireshark.org?subject=unsubscribe