kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 0c0393fc649866e477f94c639138320d0fdf69b1
parent 090e2cc6a27dddcd0a2989eb874cd5c3f9859ebb
Author: Joris Vink <joris@coders.se>
Date:   Sat, 13 Feb 2016 14:33:06 +0100

constify

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 @@ -509,7 +509,7 @@ u_int64_t kore_strtonum64(const char *, int, int *); void kore_strlcpy(char *, const char *, size_t); void kore_server_disconnect(struct connection *); int kore_split_string(char *, char *, char **, size_t); -void kore_strip_chars(char *, char, char **); +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(u_int8_t *, u_int32_t, char **); diff --git a/src/utils.c b/src/utils.c @@ -223,7 +223,7 @@ kore_split_string(char *input, char *delim, char **out, size_t ele) } void -kore_strip_chars(char *in, char strip, char **out) +kore_strip_chars(char *in, const char strip, char **out) { u_int32_t len; char *s, *p;