1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

do not cast void pointers

This commit is contained in:
Steffen Vogel 2017-04-02 13:00:34 +02:00
parent 57329bfa92
commit b4d0288c5e

View file

@ -43,7 +43,7 @@ static int websocket_connection_init(struct websocket_connection *c, struct lws
{
int ret;
struct websocket *w = (struct websocket *) c->node->_vd;
struct websocket *w = c->node->_vd;
lws_get_peer_addresses(wsi, lws_get_socket_fd(wsi), c->peer.name, sizeof(c->peer.name), c->peer.ip, sizeof(c->peer.ip));
@ -68,8 +68,8 @@ static int websocket_connection_init(struct websocket_connection *c, struct lws
static void websocket_connection_destroy(struct websocket_connection *c)
{
struct websocket *w = (struct websocket *) c->node->_vd;
struct websocket *w = c->node->_vd;
info("LWS: Connection %s closed", websocket_connection_name(c));
c->state = WEBSOCKET_CONNECTION_CLOSED;