aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipv6.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-09 00:53:17 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-09 00:53:17 +0000
commit4ba230c139d811a8bbc80afa2394ccba99a5f76e (patch)
tree46c05f01afc72970868fef1d1fe412fde89ce251 /epan/dissectors/packet-ipv6.c
parentae04f78f19777301733cf0420fc20368a9b7fe5c (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14884 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ipv6.c')
-rw-r--r--epan/dissectors/packet-ipv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ipv6.c b/epan/dissectors/packet-ipv6.c
index 89b9a7f8c8..f092eeca94 100644
--- a/epan/dissectors/packet-ipv6.c
+++ b/epan/dissectors/packet-ipv6.c
@@ -210,8 +210,8 @@ dissect_routing6(tvbuff_t *tvb, int offset, proto_tree *tree) {
struct ip6_rthdr rt;
guint len;
proto_tree *rthdr_tree;
- proto_item *ti;
- char buf[sizeof(struct ip6_rthdr0) + sizeof(struct e_in6_addr) * 23];
+ proto_item *ti;
+ guint8 buf[sizeof(struct ip6_rthdr0) + sizeof(struct e_in6_addr) * 23];
tvb_memcpy(tvb, (guint8 *)&rt, offset, sizeof(rt));
len = (rt.ip6r_len + 1) << 3;