fix warnings
This commit is contained in:
parent
f9b7dd8522
commit
2e6fc6f0f1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue