aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-12-30 07:45:35 +0000
committerGuy Harris <guy@alum.mit.edu>2015-12-31 22:56:34 +0000
commit146c4b701696cb54e9e5ad4668e3ad88743c546e (patch)
treebcf117678f9def35304e63d0843dc46889199962 /ui/gtk
parentc14df7f7a80b3650eff08e46c9fbfbd522b435dc (diff)
uat: Fix warnings [-Wcast-qual]
uat_fld_tostr_cb_t callback *out_ptr argument is g_mallocated and is to be freed by the caller so drop constness requirement to fix the corresponding g_free warnings. Change-Id: I1be25fa3e2f54fb32058ac0b5c1631b193b07701 Reviewed-on: https://code.wireshark.org/review/12943 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/uat_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/uat_gui.c b/ui/gtk/uat_gui.c
index fa770fa6b1..3e653a8147 100644
--- a/ui/gtk/uat_gui.c
+++ b/ui/gtk/uat_gui.c
@@ -169,7 +169,7 @@ static void limit_buttons(uat_t *uat) {
static char *fld_tostr(void *rec, uat_field_t *f) {
guint len;
- const char *ptr;
+ char *ptr;
char *out;
f->cb.tostr(rec, &ptr, &len, f->cbdata.tostr, f->fld_data);
@@ -199,7 +199,7 @@ static char *fld_tostr(void *rec, uat_field_t *f) {
break;
}
- g_free((char*)ptr);
+ g_free(ptr);
return out;
}