summaryrefslogtreecommitdiff
path: root/libmu_cpp/url.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libmu_cpp/url.cc')
-rw-r--r--libmu_cpp/url.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/libmu_cpp/url.cc b/libmu_cpp/url.cc
index 9c9353cdc..fe7aedcb6 100644
--- a/libmu_cpp/url.cc
+++ b/libmu_cpp/url.cc
@@ -54,19 +54,17 @@ Url :: ~Url ()
void
Url :: parse ()
{
- int status = mu_url_parse (url);
- if (status)
- throw Exception ("Url::parse", status);
+ /* FIXME: Remove */
}
-long
+unsigned
Url :: get_port ()
{
- long port;
+ unsigned port;
int status = mu_url_get_port (url, &port);
if (status)
throw Exception ("Url::get_port", status);
- return port;
+ return (unsigned short) port;
}
std::string

Return to:

Send suggestions and report system problems to the System administrator.