aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bgp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-03-06 20:04:53 +0000
committerGuy Harris <guy@alum.mit.edu>2000-03-06 20:04:53 +0000
commit8c200212c7deced89c22aa3f6428801b8f6aaed4 (patch)
tree236a4dea550a3adfb88c8f389d8feeb52895520e /packet-bgp.c
parent0e2751238c08e2bb68e991ed809907d170083aaa (diff)
Fix some "proto_tree_add_text()" calls.
svn path=/trunk/; revision=1695
Diffstat (limited to 'packet-bgp.c')
-rw-r--r--packet-bgp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-bgp.c b/packet-bgp.c
index 205bd84485..3d9344add6 100644
--- a/packet-bgp.c
+++ b/packet-bgp.c
@@ -869,7 +869,7 @@ dissect_bgp_update(const u_char *pd, int offset, frame_data *fd,
subtree3 = proto_item_add_subtree(ti, ett_bgp_mp_reach_nlri);
for (/*nothing*/; snpa > 0; snpa--) {
proto_tree_add_text(subtree3, p - pd + i + aoff + off, 1,
- "SNPA length: ", p[i + aoff + off]);
+ "SNPA length: %u", p[i + aoff + off]);
off++;
proto_tree_add_text(subtree3, p - pd + i + aoff + off,
p[i + aoff + off - 1],
@@ -1134,7 +1134,7 @@ dissect_bgp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
}
proto_tree_add_text(bgp1_tree, offset + i, BGP_MARKER_SIZE,
- "Marker", NULL);
+ "Marker");
if (hlen < BGP_HEADER_SIZE || hlen > BGP_MAX_PACKET_SIZE) {
proto_tree_add_text(bgp1_tree,