summaryrefslogtreecommitdiff
path: root/python/libmu_py/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/libmu_py/url.c')
-rw-r--r--python/libmu_py/url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/libmu_py/url.c b/python/libmu_py/url.c
index f1b7eee09..0d7875e50 100644
--- a/python/libmu_py/url.c
+++ b/python/libmu_py/url.c
@@ -102,6 +102,7 @@ api_url_destroy (PyObject *self, PyObject *args)
return _ro (Py_None);
}
+/* FIXME: Remove */
static PyObject *
api_url_parse (PyObject *self, PyObject *args)
{
@@ -111,22 +112,21 @@ api_url_parse (PyObject *self, PyObject *args)
if (!PyArg_ParseTuple (args, "O!", &PyUrlType, &py_url))
return NULL;
- status = mu_url_parse (py_url->url);
- return _ro (PyInt_FromLong (status));
+ return _ro (0);
}
static PyObject *
api_url_get_port (PyObject *self, PyObject *args)
{
int status;
- long port;
+ unsigned port;
PyUrl *py_url;
if (!PyArg_ParseTuple (args, "O!", &PyUrlType, &py_url))
return NULL;
status = mu_url_get_port (py_url->url, &port);
- return status_object (status, PyInt_FromLong (port));
+ return status_object (status, PyInt_FromLong ((long)port));
}
static PyObject *

Return to:

Send suggestions and report system problems to the System administrator.