diff options
author | Jörg Mayer <jmayer@loplof.de> | 2013-05-06 18:24:11 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2013-05-06 18:24:11 +0000 |
commit | b0c0ab53453fbd8718dd7da44f48b1a57db5b28a (patch) | |
tree | d04763635c7b87d1855fc2028cc316d0d65f4d28 /epan/exported_pdu.c | |
parent | 05ed1f519954574f2ced1bd5113e528574c90918 (diff) |
Fix compilation on -Werror compiles
svn path=/trunk/; revision=49186
Diffstat (limited to 'epan/exported_pdu.c')
-rw-r--r-- | epan/exported_pdu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/exported_pdu.c b/epan/exported_pdu.c index a6c86157e5..4559e52fd3 100644 --- a/epan/exported_pdu.c +++ b/epan/exported_pdu.c @@ -35,17 +35,16 @@ * bit_fileld, if proto_name is != NULL, wtap_encap must be -1 or viceversa */ exp_pdu_data_t * -load_export_pdu_tags(packet_info *pinfo, const char* proto_name, int wtap_encap, guint32 tags_bit_field) +load_export_pdu_tags(packet_info *pinfo, const char* proto_name, int wtap_encap _U_, guint32 tags_bit_field) { exp_pdu_data_t *exp_pdu_data; int tag_buf_size = 0; int str_len = 0; int tag_str_len = 0; int i = 0; - guint32 padding = 0; exp_pdu_data = (exp_pdu_data_t *)g_malloc(sizeof(exp_pdu_data_t)); - + /* If we have a protocol name, calculate the buffersize needed including padding and tag + length */ if(proto_name){ str_len = (int)strlen(proto_name); |