diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:43:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:43:30 +0000 |
commit | 59932f27227c4769be94fb46936d123d1770c1a2 (patch) | |
tree | dd1b62868737457d51efa73389ae4975567f4fe3 /packet-sap.c | |
parent | 8414298f8921489c6174c24d4363c391822e83c5 (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-sap.c')
-rw-r--r-- | packet-sap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-sap.c b/packet-sap.c index 0b114d5f53..854415290b 100644 --- a/packet-sap.c +++ b/packet-sap.c @@ -4,7 +4,7 @@ * * Heikki Vatiainen <hessu@cs.tut.fi> * - * $Id: packet-sap.c,v 1.30 2002/08/28 21:00:30 jmayer Exp $ + * $Id: packet-sap.c,v 1.31 2002/12/02 23:43:29 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -172,7 +172,7 @@ dissect_sap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) addr = tvb_get_ptr(tvb, offset, addr_len); proto_tree_add_text(sap_tree, tvb, offset, addr_len, "Originating Source: %s", - (is_ipv6) ? ip6_to_str((struct e_in6_addr*)addr) : ip_to_str(addr)); + (is_ipv6) ? ip6_to_str((const struct e_in6_addr*)addr) : ip_to_str(addr)); offset += addr_len; /* Authentication data lives in its own subtree */ |