aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-echo.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-07-09 00:53:17 +0000
committerGuy Harris <guy@alum.mit.edu>2005-07-09 00:53:17 +0000
commit9cb86fda9cd916415d7852c1dbfdac6ef05e42ec (patch)
tree46c05f01afc72970868fef1d1fe412fde89ce251 /epan/dissectors/packet-echo.c
parentda80656d0e18aa01a8e0b1f7850b310233e623d3 (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-echo.c')
-rw-r--r--epan/dissectors/packet-echo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-echo.c b/epan/dissectors/packet-echo.c
index b90883041b..c5dc08b6e9 100644
--- a/epan/dissectors/packet-echo.c
+++ b/epan/dissectors/packet-echo.c
@@ -49,11 +49,11 @@ static gint ett_echo = -1;
static void dissect_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- proto_tree *echo_tree = NULL;
- proto_item *ti;
- int offset = 0;
- gboolean request = FALSE;
- const char *data = tvb_get_ptr(tvb, offset, -1);
+ proto_tree *echo_tree = NULL;
+ proto_item *ti;
+ int offset = 0;
+ gboolean request = FALSE;
+ const guint8 *data = tvb_get_ptr(tvb, offset, -1);
if (pinfo->destport == ECHO_PORT) {
request = TRUE;