|
@@ -34,7 +34,6 @@ static struct uri_test uri_tests[] = {
|
34
|
34
|
|
35
|
35
|
static int test_parse_unparse ( const char *uri_string ) {
|
36
|
36
|
char buf[URI_MAX_LEN];
|
37
|
|
- size_t len;
|
38
|
37
|
struct uri *uri = NULL;
|
39
|
38
|
int rc;
|
40
|
39
|
|
|
@@ -44,7 +43,7 @@ static int test_parse_unparse ( const char *uri_string ) {
|
44
|
43
|
rc = -ENOMEM;
|
45
|
44
|
goto done;
|
46
|
45
|
}
|
47
|
|
- len = unparse_uri ( buf, sizeof ( buf ), uri, URI_ALL );
|
|
46
|
+ unparse_uri ( buf, sizeof ( buf ), uri, URI_ALL );
|
48
|
47
|
|
49
|
48
|
/* Compare result */
|
50
|
49
|
if ( strcmp ( buf, uri_string ) != 0 ) {
|
|
@@ -72,7 +71,6 @@ static int test_resolve ( const char *base_uri_string,
|
72
|
71
|
struct uri *relative_uri = NULL;
|
73
|
72
|
struct uri *resolved_uri = NULL;
|
74
|
73
|
char buf[URI_MAX_LEN];
|
75
|
|
- size_t len;
|
76
|
74
|
int rc;
|
77
|
75
|
|
78
|
76
|
/* Parse URIs */
|
|
@@ -95,7 +93,7 @@ static int test_resolve ( const char *base_uri_string,
|
95
|
93
|
}
|
96
|
94
|
|
97
|
95
|
/* Compare result */
|
98
|
|
- len = unparse_uri ( buf, sizeof ( buf ), resolved_uri, URI_ALL );
|
|
96
|
+ unparse_uri ( buf, sizeof ( buf ), resolved_uri, URI_ALL );
|
99
|
97
|
if ( strcmp ( buf, resolved_uri_string ) != 0 ) {
|
100
|
98
|
printf ( "Resolution of \"%s\"+\"%s\" produced \"%s\"\n",
|
101
|
99
|
base_uri_string, relative_uri_string, buf );
|