URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=e788fac9fa13b2e5977c27ada03bbe9ff934d9f6
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
e788fac by Guy Harris (guy@xxxxxxxxxxxx):
Squelch some casting-away-constness warnings.
If we're constructing the string, assign the pointer to it to a
non-const pointer variable, set the stat_tap_ui cli_string member to
that variable, and then use the variable to free it when we're done.
Don't cast away constness if we don't have to.
Change-Id: If3b24dbf1c910e1e6eceb76f2f6a7ae3898315f9
Reviewed-on: https://code.wireshark.org/review/25952
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from cb31f56 Don't cast away constness.
adds e788fac Squelch some casting-away-constness warnings.
Summary of changes:
ui/cli/tap-flow.c | 6 ++++--
ui/cli/tap-follow.c | 6 ++++--
ui/cli/tap-rtd.c | 6 ++++--
ui/cli/tap-simple_stattable.c | 2 +-
ui/cli/tap-srt.c | 6 ++++--
5 files changed, 17 insertions(+), 9 deletions(-)