diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-14 03:24:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-14 03:24:37 +0000 |
commit | c1b602584df7eefdf1526f1df6eae25063a0e29d (patch) | |
tree | 2d7a1356a1a61f0be6ce33b30c7da575bf82eb65 /epan/dissectors | |
parent | 60f06e558a9226e6faa659d16eb589320ac206d2 (diff) |
Don't make promises of constness that we can't honor.
svn path=/trunk/; revision=54757
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-diameter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c index 4361cb2741..bb4f711266 100644 --- a/epan/dissectors/packet-diameter.c +++ b/epan/dissectors/packet-diameter.c @@ -133,7 +133,7 @@ typedef struct _diam_vnd_t { struct _diam_avp_t { guint32 code; - const diam_vnd_t *vendor; + diam_vnd_t *vendor; diam_avp_dissector_t dissector_v16; diam_avp_dissector_t dissector_rfc; @@ -153,7 +153,7 @@ typedef struct _diam_dictionary_t { value_string *commands; } diam_dictionary_t; -typedef diam_avp_t *(*avp_constructor_t)(const avp_type_t *, guint32, const diam_vnd_t *, const char *, const value_string *, void *); +typedef diam_avp_t *(*avp_constructor_t)(const avp_type_t *, guint32, diam_vnd_t *, const char *, const value_string *, void *); struct _avp_type_t { const char *name; @@ -1325,7 +1325,7 @@ basic_avp_reginfo(diam_avp_t *a, const char *name, enum ftenum ft, static diam_avp_t * build_address_avp(const avp_type_t *type _U_, guint32 code, - const diam_vnd_t *vendor, const char *name, + diam_vnd_t *vendor, const char *name, const value_string *vs _U_, void *data _U_) { diam_avp_t *a = wmem_new0(wmem_epan_scope(), diam_avp_t); @@ -1397,7 +1397,7 @@ build_address_avp(const avp_type_t *type _U_, guint32 code, static diam_avp_t * build_proto_avp(const avp_type_t *type _U_, guint32 code, - const diam_vnd_t *vendor, const char *name _U_, + diam_vnd_t *vendor, const char *name _U_, const value_string *vs _U_, void *data) { diam_avp_t *a = (diam_avp_t *)g_malloc0(sizeof(diam_avp_t)); @@ -1422,7 +1422,7 @@ build_proto_avp(const avp_type_t *type _U_, guint32 code, } static diam_avp_t * -build_simple_avp(const avp_type_t *type, guint32 code, const diam_vnd_t *vendor, +build_simple_avp(const avp_type_t *type, guint32 code, diam_vnd_t *vendor, const char *name, const value_string *vs, void *data _U_) { diam_avp_t *a; |