diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-13 22:38:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-13 22:38:56 +0000 |
commit | 7ef949bc39530cc5f699b38d166605abc5e8c6d7 (patch) | |
tree | 7664ce2ff3ce493e521176c5b028e5f8bf4e7ec7 /epan/dissectors/packet-bgp.c | |
parent | 40791d0c4c6005ad7581f83429610e9f66a9680d (diff) | |
download | wireshark-7ef949bc39530cc5f699b38d166605abc5e8c6d7.tar.gz |
No reason for decode_bgp_rd()'s return value to be non-const, so make it
const.
svn path=/trunk/; revision=54734
Diffstat (limited to 'epan/dissectors/packet-bgp.c')
-rw-r--r-- | epan/dissectors/packet-bgp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c index fac8fa067a..f6817dddd7 100644 --- a/epan/dissectors/packet-bgp.c +++ b/epan/dissectors/packet-bgp.c @@ -1481,7 +1481,7 @@ decode_prefix6(proto_tree *tree, int hf_addr, tvbuff_t *tvb, gint offset, return(1 + length); } -static char* +static const char* decode_bgp_rd(tvbuff_t *tvb, gint offset) { guint16 rd_type; @@ -1508,7 +1508,7 @@ decode_bgp_rd(tvbuff_t *tvb, gint offset) break; } /* switch (rd_type) */ - return (char*)wmem_strbuf_get_str(strbuf); + return wmem_strbuf_get_str(strbuf); } static int |