kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 823e76f582527a6c3dd76dd7109c2b75544081af
parent 50c3d07b4889f84cb47c5f3bae477cfa411d21f1
Author: Joris Vink <joris@coders.se>
Date:   Thu,  1 Mar 2018 12:54:54 +0100

constify in parameter for kore_base64_decode().

Diffstat:
includes/kore.h | 2+-
src/utils.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/kore.h b/includes/kore.h @@ -586,7 +586,7 @@ void kore_strip_chars(char *, const char, char **); int kore_snprintf(char *, size_t, int *, const char *, ...); long long kore_strtonum(const char *, int, long long, long long, int *); int kore_base64_encode(const void *, size_t, char **); -int kore_base64_decode(char *, u_int8_t **, size_t *); +int kore_base64_decode(const char *, u_int8_t **, size_t *); void *kore_mem_find(void *, size_t, void *, size_t); char *kore_text_trim(char *, size_t); char *kore_read_line(FILE *, char *, size_t); diff --git a/src/utils.c b/src/utils.c @@ -445,7 +445,7 @@ kore_base64_encode(const void *data, size_t len, char **out) } int -kore_base64_decode(char *in, u_int8_t **out, size_t *olen) +kore_base64_decode(const char *in, u_int8_t **out, size_t *olen) { int i, c; struct kore_buf *res;