summaryrefslogtreecommitdiff
path: root/libmailutils/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libmailutils/tests')
-rw-r--r--libmailutils/tests/url-parse.c9
-rw-r--r--libmailutils/tests/wicket.c7
2 files changed, 3 insertions, 13 deletions
diff --git a/libmailutils/tests/url-parse.c b/libmailutils/tests/url-parse.c
index 92fd4f166..c87753c05 100644
--- a/libmailutils/tests/url-parse.c
+++ b/libmailutils/tests/url-parse.c
@@ -77,7 +77,7 @@ int
main ()
{
char str[1024];
- long port = 0;
+ unsigned port = 0;
mu_url_t u = NULL;
while (fgets (str, sizeof (str), stdin) != NULL)
@@ -95,11 +95,6 @@ main ()
str, rc, mu_strerror (rc));
exit (1);
}
- if ((rc = mu_url_parse (u)) != 0)
- {
- fprintf (stderr, "%s\n", mu_errname (rc));
- continue;
- }
GET_AND_PRINT (scheme, u, buf, rc);
GET_AND_PRINT (user, u, buf, rc);
@@ -127,7 +122,7 @@ main ()
mu_error ("cannot get %s: %s", "port", mu_strerror (rc));
exit (1);
}
- printf ("port %ld\n", port);
+ printf ("port %hu\n", port);
GET_AND_PRINT (path, u, buf, rc);
print_fvpairs (u);
diff --git a/libmailutils/tests/wicket.c b/libmailutils/tests/wicket.c
index b6215cbf9..57857dafc 100644
--- a/libmailutils/tests/wicket.c
+++ b/libmailutils/tests/wicket.c
@@ -38,15 +38,10 @@ match_string (const char *str)
str, rc, mu_strerror (rc));
return;
}
- if ((rc = mu_url_parse (u)) != 0)
- {
- fprintf (stderr, "%s\n", mu_errname (rc));
- return;
- }
MU_ASSERT (mu_stream_seek (stream, 0, MU_SEEK_SET, NULL));
loc.file = name;
loc.line = 0;
- rc = mu_wicket_stream_match_url (stream, &loc, u, &url);
+ rc = mu_wicket_stream_match_url (stream, &loc, u, MU_URL_PARSE_ALL, &url);
switch (rc)
{
case 0:

Return to:

Send suggestions and report system problems to the System administrator.