kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 92bd5469352589297c3cedea5288d057447958ab
parent bfd4851c854903be923016dcfaf890456da34494
Author: Joris Vink <joris@coders.se>
Date:   Fri, 13 Apr 2018 16:04:33 +0200

Remove unused argument.

Diffstat:
src/cli.c | 2+-
src/python.c | 9+++------
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); }