Submitter: Guy Harris (g...@alum.mit.edu)
Changed: branch: master
e7cf995 by Guy Harris (g...@alum.mit.edu):
Squelch some casting-away-const warnings.
Code *outside* this file isn't allowed to free or overwrite the
structure members in question; code *inside* this file only does so when
it's appropriate, so we just cast away the warnings.
Use free_string_like_preference() in one place where the code was
duplicated; add a pref_set_string_like_pref_value() routine to
encapsulate the freeing.
Remove some unnecessary casts.
Petri-Dish: Guy Harris <g...@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <g...@alum.mit.edu>
from e5cc633 Constify an argument that doesn't need to be non-const.
adds e7cf995 Squelch some casting-away-const warnings.
Summary of changes:
epan/prefs.c | 32 ++++++++++++++++++++++----------
1 file changed, 22 insertions(+), 10 deletions(-)
Sent via: Wireshark-commits mailing list <email@example.com>