diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-25 21:20:47 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-25 21:20:47 +0000 |
commit | 34f8f7e77dcbe34e7bd1377fddc0eb82c2513f7d (patch) | |
tree | b51fbcb3fba1756a88d6c8a1669c2e2b1b0aaa0c /plugins | |
parent | d6fdc37988ac01a79654df85f3ae74e81733ca4e (diff) | |
download | wireshark-34f8f7e77dcbe34e7bd1377fddc0eb82c2513f7d.tar.gz wireshark-34f8f7e77dcbe34e7bd1377fddc0eb82c2513f7d.tar.bz2 wireshark-34f8f7e77dcbe34e7bd1377fddc0eb82c2513f7d.zip |
Get rid of some unnecessary casts that just provoke uninteresting
warnings.
More fun with GArrays: cast away some warnings that don't report real
alignment problems and that wouldn't even happen if the "data" member of
a GArray were a "void *".
svn path=/trunk/; revision=36856
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimaxasncp/packet-wimaxasncp.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c index f58750647c..daa823cf57 100644 --- a/plugins/wimaxasncp/packet-wimaxasncp.c +++ b/plugins/wimaxasncp/packet-wimaxasncp.c @@ -2581,7 +2581,7 @@ static void add_tlv_reg_info( switch (tlv->decoder) { case WIMAXASNCP_TLV_UNKNOWN: - g_free((gpointer*)blurb); + g_free(blurb); add_reg_info( &tlv->hf_value, name, abbrev, FT_BYTES, BASE_NONE, @@ -2595,9 +2595,9 @@ static void add_tlv_reg_info( case WIMAXASNCP_TLV_COMPOUND: case WIMAXASNCP_TLV_FLAG0: - g_free((gpointer*)name); - g_free((gpointer*)abbrev); - g_free((gpointer*)blurb); + g_free(name); + g_free(abbrev); + g_free(blurb); break; case WIMAXASNCP_TLV_BYTES: @@ -2646,8 +2646,8 @@ static void add_tlv_reg_info( break; case WIMAXASNCP_TLV_ID: - g_free((gpointer*)name); - g_free((gpointer*)abbrev); + g_free(name); + g_free(abbrev); name = "IPv4 Address"; @@ -2706,8 +2706,8 @@ static void add_tlv_reg_info( break; case WIMAXASNCP_TLV_IP_ADDRESS: - g_free((gpointer*)name); - g_free((gpointer*)abbrev); + g_free(name); + g_free(abbrev); name = "IPv4 Address"; @@ -3352,7 +3352,7 @@ register_wimaxasncp_fields(const char* unused _U_) } /* Set enums to use with this TLV */ - tlv->enum_vs = (value_string*)array->data; + tlv->enum_vs = (value_string*)(void*)array->data; } add_tlv_reg_info(tlv); @@ -3416,11 +3416,11 @@ register_wimaxasncp_fields(const char* unused _U_) * used */ proto_register_field_array( proto_wimaxasncp, - (hf_register_info*)wimaxasncp_build_dict.hf->data, + (hf_register_info*)(void *)wimaxasncp_build_dict.hf->data, wimaxasncp_build_dict.hf->len); proto_register_subtree_array( - (gint**)wimaxasncp_build_dict.ett->data, + (gint**)(void *)wimaxasncp_build_dict.ett->data, wimaxasncp_build_dict.ett->len); } |