From f9b7dd8522401ff0ca1633b83034cf46f4e4913d Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 2 Jun 2014 05:56:46 +0800 Subject: [PATCH] fix prototype --- src/slug.c | 2 +- src/slug.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slug.c b/src/slug.c index 55a95be..ab1abbf 100644 --- a/src/slug.c +++ b/src/slug.c @@ -77,7 +77,7 @@ r3_slug_t * r3_slug_parse_next(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(char *needle, int needle_len, char *offset, char **errstr) { r3_slug_t * s = r3_slug_new(needle, needle_len); if (!s) { return NULL; diff --git a/src/slug.h b/src/slug.h index bf4763f..4980b1b 100644 --- a/src/slug.h +++ b/src/slug.h @@ -43,7 +43,7 @@ r3_slug_t * r3_slug_new(char * path, int path_len); 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(char *needle, int needle_len, char *offset, char **errstr); char * r3_slug_to_str(const r3_slug_t *s);