aboutsummaryrefslogtreecommitdiffstats
path: root/packet-m2tp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-12-02 23:43:30 +0000
committerGuy Harris <guy@alum.mit.edu>2002-12-02 23:43:30 +0000
commit59932f27227c4769be94fb46936d123d1770c1a2 (patch)
treedd1b62868737457d51efa73389ae4975567f4fe3 /packet-m2tp.c
parent8414298f8921489c6174c24d4363c391822e83c5 (diff)
Don't cast away constness, and fix variable and structure member
qualifiers as necessary to ensure that we don't have to. "strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't test their results as if they did. Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes. Update Michael Tuexen's e-mail address. svn path=/trunk/; revision=6726
Diffstat (limited to 'packet-m2tp.c')
-rw-r--r--packet-m2tp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-m2tp.c b/packet-m2tp.c
index 0052394449..715e1a6248 100644
--- a/packet-m2tp.c
+++ b/packet-m2tp.c
@@ -5,7 +5,7 @@
*
* Copyright 2001, Heinz Prantner <heinz.prantner[AT]radisys.com>
*
- * $Id: packet-m2tp.c,v 1.4 2002/08/28 21:00:20 jmayer Exp $
+ * $Id: packet-m2tp.c,v 1.5 2002/12/02 23:43:26 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -335,12 +335,12 @@ static void
dissect_m2tp_info_parameter(tvbuff_t *parameter_tvb, proto_tree *parameter_tree, proto_item *parameter_item)
{
guint16 length, info_string_length;
- char *info_string;
+ const char *info_string;
if (parameter_tree) {
length = tvb_get_ntohs(parameter_tvb, PARAMETER_LENGTH_OFFSET);
info_string_length = length - PARAMETER_HEADER_LENGTH;
- info_string = (char *)tvb_get_ptr(parameter_tvb, INFO_STRING_OFFSET, info_string_length);
+ info_string = (const char *)tvb_get_ptr(parameter_tvb, INFO_STRING_OFFSET, info_string_length);
proto_tree_add_string(parameter_tree, hf_m2tp_info_string, parameter_tvb, INFO_STRING_OFFSET, info_string_length, info_string);
proto_item_set_text(parameter_item, "Info String (%.*s)", info_string_length, info_string);
}