aboutsummaryrefslogtreecommitdiffstats
path: root/epan/charsets.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-17 21:47:49 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-18 05:48:46 +0000
commiteec528cc70632469b94896474644e1b67d7b37dd (patch)
treedcb3d216973d344321ff273d31fd5d7dc6552866 /epan/charsets.c
parentab6d2c6ac364577e49baa52b7b00d1a91d3a1a50 (diff)
Make a pointer const that has no need not to be const.
Change-Id: I32c86988823fcea96239b199bf21b98ee3ec8a5e Reviewed-on: https://code.wireshark.org/review/25359 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/charsets.c')
-rw-r--r--epan/charsets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/charsets.c b/epan/charsets.c
index 7f298fdba2..bfb967e84b 100644
--- a/epan/charsets.c
+++ b/epan/charsets.c
@@ -1374,12 +1374,12 @@ guint8 *
get_t61_string(wmem_allocator_t *scope, const guint8 *ptr, gint length)
{
gint i;
- guint8 *c;
+ const guint8 *c;
wmem_strbuf_t *strbuf;
strbuf = wmem_strbuf_sized_new(scope, length+1, 0);
- for (i = 0, c = (guint8 *)ptr; i < length; c++, i++) {
+ for (i = 0, c = ptr; i < length; c++, i++) {
if (!t61_tab[*c]) {
wmem_strbuf_append_unichar(strbuf, UNREPL);
} else if ((*c & 0xf0) == 0xc0) {