const
This commit is contained in:
parent
c801164c88
commit
00c364dacb
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ int r3_slug_check(r3_slug_t *s, char **errstr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char * r3_slug_to_str(r3_slug_t *s) {
|
char * r3_slug_to_str(const r3_slug_t *s) {
|
||||||
char *str = NULL;
|
char *str = NULL;
|
||||||
asprintf(&str, "slug: '%.*s', pattern: '%.*s', path: '%.*s'", s->len, s->begin, s->pattern_len, s->pattern, s->path_len, s->path);
|
asprintf(&str, "slug: '%.*s', pattern: '%.*s', path: '%.*s'", s->len, s->begin, s->pattern_len, s->pattern, s->path_len, s->path);
|
||||||
return str;
|
return str;
|
||||||
|
|
|
@ -45,7 +45,7 @@ int r3_slug_check(r3_slug_t *s, char **errstr);
|
||||||
|
|
||||||
r3_slug_t * r3_slug_parse(const char *needle, int needle_len, char *offset, char **errstr);
|
r3_slug_t * r3_slug_parse(const char *needle, int needle_len, char *offset, char **errstr);
|
||||||
|
|
||||||
char * r3_slug_to_str(r3_slug_t *s);
|
char * r3_slug_to_str(const r3_slug_t *s);
|
||||||
|
|
||||||
void r3_slug_free(r3_slug_t * s);
|
void r3_slug_free(r3_slug_t * s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue