fix warnings

This commit is contained in:
c9s 2014-06-02 05:57:18 +08:00
parent f9b7dd8522
commit 2e6fc6f0f1

View file

@ -100,7 +100,7 @@ START_TEST (test_slug_parse_with_pattern)
{
char * pattern = "/user/{name:\\d{3}}";
char * errstr = NULL;
const r3_slug_t *s = r3_slug_parse(pattern, strlen(pattern), pattern, &errstr);
r3_slug_t *s = r3_slug_parse(pattern, strlen(pattern), pattern, &errstr);
ck_assert(s);
char * out = r3_slug_to_str(s);
@ -117,7 +117,7 @@ START_TEST (test_slug_parse_without_pattern)
{
char * pattern = "/user/{name}";
char * errstr = NULL;
const r3_slug_t *s = r3_slug_parse(pattern, strlen(pattern), pattern, &errstr);
r3_slug_t *s = r3_slug_parse(pattern, strlen(pattern), pattern, &errstr);
ck_assert(s);
char * out = r3_slug_to_str(s);