From 7cefdd496f8e45a5d4ee54b7c6cfc5283ae32d51 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
Date: Tue, 16 Oct 2018 04:05:42 +0200 Subject: Cleanup --- demo-json-rpc-server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo-json-rpc-server.c b/demo-json-rpc-server.c index 2c487f5..4ec7e4c 100644 --- a/demo-json-rpc-server.c +++ b/demo-json-rpc-server.c @@ -2218,21 +2218,21 @@ client_ws_close_cb (struct ws_handler *handler) static void client_ws_shutdown (struct client *client) { - struct client_ws *self = (struct client_ws *) client; + FIND_CONTAINER (self, client, struct client_ws, client); ws_handler_close (&self->handler, WS_STATUS_GOING_AWAY, NULL, 0); } static void client_ws_destroy (struct client *client) { - struct client_ws *self = (struct client_ws *) client; + FIND_CONTAINER (self, client, struct client_ws, client); ws_handler_free (&self->handler); } static bool client_ws_push (struct client *client, const void *data, size_t len) { - struct client_ws *self = (struct client_ws *) client; + FIND_CONTAINER (self, client, struct client_ws, client); return ws_handler_push (&self->handler, data, len); } -- cgit v1.2.3-70-g09d2