diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 19:24:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 19:24:33 +0000 |
commit | 17e047e1d0f5a84f2503f1550293213a4d4a6505 (patch) | |
tree | 0ed9d479d7b9c445243f01c9667093be1f21f83d /src/libutil/util.c | |
parent | a2097c2da30e72f41cbcdc11214e31602b6f513a (diff) | |
download | rspamd-17e047e1d0f5a84f2503f1550293213a4d4a6505.tar.gz rspamd-17e047e1d0f5a84f2503f1550293213a4d4a6505.zip |
Use const for base32 encoding.
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index e690812d6..f62022f77 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -2059,7 +2059,7 @@ rspamd_ucl_emit_gstring (ucl_object_t *obj, */ gchar * -rspamd_encode_base32 (guchar *in, gsize inlen) +rspamd_encode_base32 (const guchar *in, gsize inlen) { gint remain = -1, r, x; gsize i; @@ -2153,7 +2153,7 @@ static const guchar b32_dec[] = { }; guchar* -rspamd_decode_base32 (gchar *in, gsize inlen, gsize *outlen) +rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen) { guchar *res, decoded; guchar c; |