diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-12-24 23:17:38 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-12-24 23:17:38 +0000 |
commit | dc0fc1896e6fd6760ce052ed522a5ae010b211ce (patch) | |
tree | b4f33735858274052bfa0521e5d785c53a9a8def /epan/dissectors/packet-dcm.c | |
parent | ed556cd7c4940403a6326ad790bc1353e958ae21 (diff) | |
download | wireshark-dc0fc1896e6fd6760ce052ed522a5ae010b211ce.tar.gz wireshark-dc0fc1896e6fd6760ce052ed522a5ae010b211ce.tar.bz2 wireshark-dc0fc1896e6fd6760ce052ed522a5ae010b211ce.zip |
use GLib's pointer to int conversion macros to prevent compiler warnings
svn path=/trunk/; revision=12830
Diffstat (limited to 'epan/dissectors/packet-dcm.c')
-rw-r--r-- | epan/dissectors/packet-dcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dcm.c b/epan/dissectors/packet-dcm.c index 32fca4c9bf..9f06251440 100644 --- a/epan/dissectors/packet-dcm.c +++ b/epan/dissectors/packet-dcm.c @@ -263,7 +263,7 @@ dcm_init(void) unsigned int i; dcm_tagTable = g_hash_table_new(NULL, NULL); for (i = 0; i < sizeof(tagData) / sizeof(dcmTag_t); i++) - g_hash_table_insert(dcm_tagTable, (gpointer)tagData[i].tag, + g_hash_table_insert(dcm_tagTable, GINT_TO_POINTER(tagData[i].tag), (gpointer) (tagData+i)); } } @@ -504,7 +504,7 @@ dcm_tag2str(guint16 grp, guint16 elm, guint8 syntax, tvbuff_t *tvb, int offset, return buf; } tag = (grp << 16) | elm; - if (NULL == (dtag = g_hash_table_lookup(dcm_tagTable, (gconstpointer) tag))) + if (NULL == (dtag = g_hash_table_lookup(dcm_tagTable, GUINT_TO_POINTER(tag)))) dtag = &utag; strcpy(buf, dtag->desc); |