diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-04-14 18:31:02 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-04-14 18:31:02 +0000 |
commit | 871c9c715249df434c78ade9ab2c2455048e5567 (patch) | |
tree | 0d2073fa711550869135bdd135159a37630b865f /epan/dissectors/packet-bgp.c | |
parent | 14980f15921c20d581b39cc3c237e94a22bfce64 (diff) |
ep_strbuf usage: ep_strbuf_new_label("") --> ep_strbuf_new_label(NULL);
ep_strbuf_append() --> ep_strbuf_append_c() in a few cases.
svn path=/trunk/; revision=28052
Diffstat (limited to 'epan/dissectors/packet-bgp.c')
-rw-r--r-- | epan/dissectors/packet-bgp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c index d45c63b64b..85fcc2d4b9 100644 --- a/epan/dissectors/packet-bgp.c +++ b/epan/dissectors/packet-bgp.c @@ -690,7 +690,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6, case SAFNUM_MPLS_LABEL: plen = tvb_get_guint8(tvb, offset); - stack_strbuf = ep_strbuf_new_label(""); + stack_strbuf = ep_strbuf_new_label(NULL); labnum = decode_MPLS_stack(tvb, offset + 1, stack_strbuf); offset += (1 + labnum * 3); @@ -772,7 +772,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6, case SAFNUM_LAB_VPNMULCAST: case SAFNUM_LAB_VPNUNIMULC: plen = tvb_get_guint8(tvb, offset); - stack_strbuf = ep_strbuf_new_label(""); + stack_strbuf = ep_strbuf_new_label(NULL); labnum = decode_MPLS_stack(tvb, offset + 1, stack_strbuf); offset += (1 + labnum * 3); @@ -896,7 +896,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6, case SAFNUM_MPLS_LABEL: plen = tvb_get_guint8(tvb, offset); - stack_strbuf = ep_strbuf_new_label(""); + stack_strbuf = ep_strbuf_new_label(NULL); labnum = decode_MPLS_stack(tvb, offset + 1, stack_strbuf); offset += (1 + labnum * 3); @@ -952,7 +952,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6, case SAFNUM_LAB_VPNMULCAST: case SAFNUM_LAB_VPNUNIMULC: plen = tvb_get_guint8(tvb, offset); - stack_strbuf = ep_strbuf_new_label(""); + stack_strbuf = ep_strbuf_new_label(NULL); labnum = decode_MPLS_stack(tvb, offset + 1, stack_strbuf); offset += (1 + labnum * 3); @@ -1041,7 +1041,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6, ce_id=tvb_get_ntohs(tvb,offset+10); labblk_off=tvb_get_ntohs(tvb,offset+12); labblk_size=tvb_get_ntohs(tvb,offset+14); - stack_strbuf = ep_strbuf_new_label(""); + stack_strbuf = ep_strbuf_new_label(NULL); labnum = decode_MPLS_stack(tvb, offset + 16, stack_strbuf); switch (rd_type) { @@ -1490,7 +1490,7 @@ dissect_bgp_update(tvbuff_t *tvb, proto_tree *tree) hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); o = BGP_HEADER_SIZE; - junk_emstr = ep_strbuf_new_label(""); + junk_emstr = ep_strbuf_new_label(NULL); /* check for withdrawals */ len = tvb_get_ntohs(tvb, o); |