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:
parent
57329bfa92
commit
b4d0288c5e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue