diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-07-09 00:53:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-07-09 00:53:17 +0000 |
commit | 9cb86fda9cd916415d7852c1dbfdac6ef05e42ec (patch) | |
tree | 46c05f01afc72970868fef1d1fe412fde89ce251 /epan/dissectors/packet-igmp.c | |
parent | da80656d0e18aa01a8e0b1f7850b310233e623d3 (diff) |
Squelch various signed vs. unsigned warnings by:
making pointers to byte data be "guint8 *" rather than "char *",
and making buffers holding byte data arrays of "guint8" rather
than arrays of "char";
making pointers to text strings "char *" rather than "guchar *";
appropriately casting pointers (cast to "guint8 *" when passing
to routines expecting "guint8 *" or when assigning to "guint8
*");
making port-number preferences "guint";
making enum preferences "gint";
making hf_ variables "int".
Clean up white space.
svn path=/trunk/; revision=14884
Diffstat (limited to 'epan/dissectors/packet-igmp.c')
-rw-r--r-- | epan/dissectors/packet-igmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-igmp.c b/epan/dissectors/packet-igmp.c index 4f32440c7b..890c234043 100644 --- a/epan/dissectors/packet-igmp.c +++ b/epan/dissectors/packet-igmp.c @@ -452,7 +452,7 @@ dissect_v3_group_record(tvbuff_t *tvb, proto_tree *parent_tree, int offset) tvb_memcpy(tvb, (guint8 *)&ip, offset+4, 4); item = proto_tree_add_text(parent_tree, tvb, offset, -1, "Group Record : %s %s", - ip_to_str((gchar*)&ip), + ip_to_str((guint8*)&ip), val_to_str(tvb_get_guint8(tvb, offset), vs_record_type,"") ); tree = proto_item_add_subtree(item, ett_group_record); |