mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
Constify in parameter for kore_strip_chars()
This commit is contained in:
parent
f34d21caa7
commit
eab8dcd9ac
@ -937,7 +937,7 @@ 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 *, const char *, char **, size_t);
|
||||
void kore_strip_chars(char *, const char, char **);
|
||||
void kore_strip_chars(const char *, const char, char **);
|
||||
int kore_snprintf(char *, size_t, int *, const char *, ...)
|
||||
__attribute__((format (printf, 4, 5)));
|
||||
long long kore_strtonum(const char *, int, long long, long long, int *);
|
||||
|
@ -239,10 +239,11 @@ kore_split_string(char *input, const char *delim, char **out, size_t ele)
|
||||
}
|
||||
|
||||
void
|
||||
kore_strip_chars(char *in, const char strip, char **out)
|
||||
kore_strip_chars(const char *in, const char strip, char **out)
|
||||
{
|
||||
char *p;
|
||||
const char *s;
|
||||
u_int32_t len;
|
||||
char *s, *p;
|
||||
|
||||
len = strlen(in);
|
||||
*out = kore_malloc(len + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user