kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 2449a86085a2020bfba55fa0e858668d2f0318f3
parent 884d6d722e388c9427c1b563869d5d07b96a1931
Author: Joris Vink <joris@coders.se>
Date:   Mon,  8 Oct 2018 20:12:25 +0200

missing addrtype -> family renames

Diffstat:
src/python.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -737,7 +737,7 @@ pyconnection_get_addr(struct pyconnection *pyc, void *closure) PyObject *result; char addr[INET6_ADDRSTRLEN]; - switch (pyc->c->addrtype) { + switch (pyc->c->family) { case AF_INET: ptr = &pyc->c->addr.ipv4.sin_addr; break; @@ -745,11 +745,11 @@ pyconnection_get_addr(struct pyconnection *pyc, void *closure) ptr = &pyc->c->addr.ipv6.sin6_addr; break; default: - PyErr_SetString(PyExc_RuntimeError, "invalid addrtype"); + PyErr_SetString(PyExc_RuntimeError, "invalid family"); return (NULL); } - if (inet_ntop(pyc->c->addrtype, ptr, addr, sizeof(addr)) == NULL) { + if (inet_ntop(pyc->c->family, ptr, addr, sizeof(addr)) == NULL) { PyErr_SetString(PyExc_RuntimeError, "inet_ntop failed"); return (NULL); }