Submitter: Guy Harris (g...@alum.mit.edu)
Changed: branch: master
Repository: wireshark


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.
    Change-Id: Ifc30a919cbd331367f5932ad23c3a1ed7cd4579f
    Reviewed-on: https://code.wireshark.org/review/26352
    Petri-Dish: Guy Harris <g...@alum.mit.edu>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <g...@alum.mit.edu>

Actions performed:

    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 <wireshark-commits@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-commits
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-commits

Reply via email to