This commit is contained in:
c9s 2014-06-02 05:55:45 +08:00
parent c801164c88
commit 00c364dacb
2 changed files with 2 additions and 2 deletions

View file

@ -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;
asprintf(&str, "slug: '%.*s', pattern: '%.*s', path: '%.*s'", s->len, s->begin, s->pattern_len, s->pattern, s->path_len, s->path);
return str;

View file

@ -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);
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);