diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-06-25 03:05:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-06-25 03:05:19 +0000 |
commit | 9e6329860a870298350c79012f2c8e2b75362427 (patch) | |
tree | 0fa21e62dd8eedd1a5f0ed5aa1249c11a724b1f3 /epan/dissectors/packet-diameter.c | |
parent | 495ddc2830cb3f490e53519ca3074d1aa52c2600 (diff) |
Fix some warnings - declare some arguments, variables, and structure
members to be const pointers when that's possible, and throw in some
casts when the GLib API fails to have properly consted arguments.
Use ep_strdup_printf() in some cases.
svn path=/trunk/; revision=25596
Diffstat (limited to 'epan/dissectors/packet-diameter.c')
-rw-r--r-- | epan/dissectors/packet-diameter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c index 4015a99658..93145707b0 100644 --- a/epan/dissectors/packet-diameter.c +++ b/epan/dissectors/packet-diameter.c @@ -136,7 +136,7 @@ typedef struct _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*); struct _avp_type_t { - char* name; + const char* name; diam_avp_dissector_t v16; diam_avp_dissector_t rfc; enum ftenum ft; @@ -1066,11 +1066,11 @@ static int dictionary_load(void) all_cmds = g_array_new(TRUE,TRUE,sizeof(value_string)); pe_tree_insert32(dictionary.vnds,0,&no_vnd); - g_hash_table_insert(vendors,"None",&no_vnd); + g_hash_table_insert(vendors,(gchar *)"None",&no_vnd); /* initialize the types hash with the known basic types */ for (type = basic_types; type->name; type++) { - g_hash_table_insert(build_dict.types,type->name,(void*)type); + g_hash_table_insert(build_dict.types,(gchar *)type->name,(void*)type); } /* load the dictionary */ |