commit 92bd5469352589297c3cedea5288d057447958ab
parent bfd4851c854903be923016dcfaf890456da34494
Author: Joris Vink <joris@coders.se>
Date: Fri, 13 Apr 2018 16:04:33 +0200
Remove unused argument.
Diffstat:
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/cli.c b/src/cli.c
@@ -345,7 +345,7 @@ static const char *pyko_init_data =
"if port is None:\n"
"\tport = '8888'\n"
"\n"
- "kore.listen(ip, port, '')\n"
+ "kore.listen(ip, port)\n"
"\n"
"def kore_worker_configure():\n"
"\tconninfo = os.getenv('PYKO_CONNINFO')\n"
diff --git a/src/python.c b/src/python.c
@@ -627,15 +627,12 @@ python_kore_log(PyObject *self, PyObject *args)
static PyObject *
python_kore_listen(PyObject *self, PyObject *args)
{
- const char *ip, *port, *ccb;
+ const char *ip, *port;
- if (!PyArg_ParseTuple(args, "sss", &ip, &port, &ccb))
+ if (!PyArg_ParseTuple(args, "ss", &ip, &port))
return (NULL);
- if (!strcmp(ccb, ""))
- ccb = NULL;
-
- if (!kore_server_bind(ip, port, ccb)) {
+ if (!kore_server_bind(ip, port, NULL)) {
PyErr_SetString(PyExc_RuntimeError, "failed to listen");
return (NULL);
}