No reason for decode_bgp_rd()'s return value to be non-const, so make it

const.

svn path=/trunk/; revision=54734
This commit is contained in:
Guy Harris 2014-01-13 22:38:56 +00:00
parent 40791d0c4c
commit 7ef949bc39
1 changed files with 2 additions and 2 deletions

View File

@ -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