summaryrefslogtreecommitdiff
path: root/packet-dhcpv6.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-11 11:07:21 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-11 11:07:21 +0000
commit51cb58401f80dd609373e7c5c2570ef5204a0016 (patch)
treea2741074573ec0558d00982f19a875d3b26750d8 /packet-dhcpv6.c
parente8297af92b38b35d2aa35dd99f54da0519515563 (diff)
downloadwireshark-51cb58401f80dd609373e7c5c2570ef5204a0016.tar.gz
"void" values cannot be returned, even by a "void" function.
The "downstream" flag is a Boolean; treat it as such. svn path=/trunk/; revision=4528
Diffstat (limited to 'packet-dhcpv6.c')
-rw-r--r--packet-dhcpv6.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/packet-dhcpv6.c b/packet-dhcpv6.c
index cbae66cde4..4504819501 100644
--- a/packet-dhcpv6.c
+++ b/packet-dhcpv6.c
@@ -2,7 +2,7 @@
* Routines for DHCPv6 packet disassembly
* Jun-ichiro itojun Hagino <itojun@iijlab.net>
*
- * $Id: packet-dhcpv6.c,v 1.1 2002/01/09 02:51:46 itojun Exp $
+ * $Id: packet-dhcpv6.c,v 1.2 2002/01/11 11:07:21 guy Exp $
*
* The information used comes from:
* draft-ietf-dhc-dhcpv6-22.txt
@@ -175,7 +175,8 @@ dhcpv6_option(tvbuff_t *tvb, proto_tree *bp_tree, int off, int eoff,
}
static void
-dissect_dhcpv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int downstream)
+dissect_dhcpv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
+ gboolean downstream)
{
proto_tree *bp_tree = NULL;
proto_item *ti;
@@ -225,13 +226,13 @@ dissect_dhcpv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int downstre
static void
dissect_dhcpv6_downstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- return dissect_dhcpv6(tvb, pinfo, tree, 1);
+ dissect_dhcpv6(tvb, pinfo, tree, TRUE);
}
static void
dissect_dhcpv6_upstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- return dissect_dhcpv6(tvb, pinfo, tree, 0);
+ dissect_dhcpv6(tvb, pinfo, tree, FALSE);
}