commit 552d59248c04afdcbee52300aed8a8b4fe23978a
parent 4a72877f4edb0839902627f79117c21f297d5ec2
Author: Joris Vink <joris@coders.se>
Date: Thu, 6 Oct 2016 16:50:41 +0200
constify delim in kore_split_string().
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/includes/kore.h b/includes/kore.h
@@ -530,7 +530,7 @@ void kore_log(int, const char *, ...);
u_int64_t kore_strtonum64(const char *, int, int *);
size_t kore_strlcpy(char *, const char *, const size_t);
void kore_server_disconnect(struct connection *);
-int kore_split_string(char *, char *, char **, size_t);
+int kore_split_string(char *, const char *, char **, size_t);
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 *);
diff --git a/src/utils.c b/src/utils.c
@@ -224,7 +224,7 @@ kore_strtonum64(const char *str, int sign, int *err)
}
int
-kore_split_string(char *input, char *delim, char **out, size_t ele)
+kore_split_string(char *input, const char *delim, char **out, size_t ele)
{
int count;
char **ap;