diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-03-14 06:03:26 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-03-14 06:03:26 +0000 |
commit | 91ed6594a63d35bddfce3a0a2ec73912e0711e8b (patch) | |
tree | 931af4a0c560f0c694a5b1d795499134ff602f4d /packet-rsvp.c | |
parent | 2e2f33adcd2cb5181cabf3ed80c1ac7c6c155d7a (diff) |
Fix some errors discovered by making GCC do format string/argument
cross-checking, and by replacing "proto_tree_add_item_format()" by
multiple routines to add items of various types.
Make the arguments of "proto_tree_add_bytes_format()" and
"proto_tree_add_string_format()" that specify the bytes or the string be
"const" pointers, so that one can pass a "const" pointer without
complaints from the compiler.
Squelch a (bogus, but the compiler isn't in a position to know that)
complaint about an uninitialized variable.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1716 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rsvp.c')
-rw-r--r-- | packet-rsvp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-rsvp.c b/packet-rsvp.c index ac8e572683..698666938d 100644 --- a/packet-rsvp.c +++ b/packet-rsvp.c @@ -3,7 +3,7 @@ * * (c) Copyright Ashok Narayanan <ashokn@cisco.com> * - * $Id: packet-rsvp.c,v 1.17 2000/03/13 05:19:50 ashokn Exp $ + * $Id: packet-rsvp.c,v 1.18 2000/03/14 06:03:24 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -961,8 +961,9 @@ dissect_rsvp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) memcpy(&ip_addr, pd+offset2+8, 4); proto_tree_add_text(rsvp_object_tree, offset2+8, 4, - "Extended Tunnel ID: %d (%s)", - ntohl(ip_addr), ip_to_str(pd+offset2+8)); + "Extended Tunnel ID: %lu (%s)", + (unsigned long)ntohl(ip_addr), + ip_to_str(pd+offset2+8)); proto_tree_add_item_hidden(rsvp_object_tree, rsvp_filter[RSVPF_SESSION_EXT_TUNNEL_ID], offset2+8, 4, ip_addr); break; |