diff options
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/gsmmap/packet-gsmmap-template.c | 4 | ||||
-rw-r--r-- | asn1/h245/packet-h245-template.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/asn1/gsmmap/packet-gsmmap-template.c b/asn1/gsmmap/packet-gsmmap-template.c index 6245d41b99..72663f2de8 100644 --- a/asn1/gsmmap/packet-gsmmap-template.c +++ b/asn1/gsmmap/packet-gsmmap-template.c @@ -241,7 +241,6 @@ const value_string gsm_map_etsi_defined_pdp_vals[] = { static void gsmmap_add_ucs2_ussd_string(tvbuff_t *tvb, proto_tree *tree, int length) { -#if GLIB_MAJOR_VERSION > 2 gchar *utf8_text = NULL; GIConv cd; GError *l_conv_error = NULL; @@ -261,9 +260,6 @@ gsmmap_add_ucs2_ussd_string(tvbuff_t *tvb, proto_tree *tree, int length) } else proto_tree_add_text(tree, tvb, 0, length, "USSD String: g_iconv_open FAILED contact wireshark"); -#else - proto_tree_add_text(tree, tvb, 0, length, "UCS2 conversion not supported with Glib < 2"); -#endif } char * unpack_digits(tvbuff_t *tvb, int offset){ diff --git a/asn1/h245/packet-h245-template.c b/asn1/h245/packet-h245-template.c index bbfe34138f..6dac48ad54 100644 --- a/asn1/h245/packet-h245-template.c +++ b/asn1/h245/packet-h245-template.c @@ -344,11 +344,7 @@ static void h245_setup_channels(packet_info *pinfo, channel_info_t *upcoming_cha /* (S)RTP, (S)RTCP */ if (upcoming_channel->rfc2198 > 0) { -#if GLIB_MAJOR_VERSION < 2 - rtp_dyn_payload = g_hash_table_new(g_int_hash, g_int_equal); -#else rtp_dyn_payload = g_hash_table_new_full(g_int_hash, g_int_equal, g_free, g_free); -#endif key = g_malloc(sizeof(gint)); *key = upcoming_channel->rfc2198; g_hash_table_insert(rtp_dyn_payload, key, g_strdup("red")); |