fix prototype

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

View file

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

View file

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