aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-22 17:05:28 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-22 17:05:28 +0000
commitf46874b6dce0dad3482beb22a9834b5231e1b4fa (patch)
tree64fdf796bca672f99a3e750ff978ebe9e97ea0a3 /plugins
parenta5514d77b85b6cbbb3b20300903587659aab60ff (diff)
Assume the tags are mallocated, so they're properly aligned. Cast away
the warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36816 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index af578fca4e..b58e9cf3b2 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -2582,7 +2582,7 @@ index_typedef(GNode *node, gpointer data)
t->refs = g_ptr_array_new(); /* collect references here */
node = g_node_first_child(node); /* the real type */
tag = (TBLTag *)node->data;
- if ((tag->type == TBLTYPE_Type) && (((TBLType *)tag)->typeId == TBL_CHOICE)) {
+ if ((tag->type == TBLTYPE_Type) && (((TBLType *)(void *)tag)->typeId == TBL_CHOICE)) {
/* no reasonable default... ! */
t->defclass = 3; /* Private .... */
t->deftag= 9999; /* a random value */