diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-22 17:05:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-22 17:05:28 +0000 |
commit | 61fcd3200b1f4fac23b91e4bb406749d5c581e91 (patch) | |
tree | 64fdf796bca672f99a3e750ff978ebe9e97ea0a3 /plugins | |
parent | 9b521ba35fd9cd7c6ce495cdf10919a62c06a703 (diff) |
Assume the tags are mallocated, so they're properly aligned. Cast away
the warnings.
svn path=/trunk/; revision=36816
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/asn1/packet-asn1.c | 2 |
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 */ |