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 bfd4851c854903be923016dcfaf890456da34494
parent a3cab0d97b2f4ce181531637d8fa41ca3bbc07e4
Author: Joris Vink <joris@coders.se>
Date:   Fri, 13 Apr 2018 07:41:22 +0200

minor style fixes

Diffstat:
src/websocket.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/websocket.c b/src/websocket.c @@ -138,8 +138,8 @@ kore_websocket_handshake(struct http_request *req, const char *onconnect, int kore_websocket_send_clean(struct netbuf *nb) { - kore_free(nb->buf); - return 0; + kore_free(nb->buf); + return 0; } void @@ -150,7 +150,8 @@ kore_websocket_send(struct connection *c, u_int8_t op, const void *data, kore_buf_init(&frame, len); websocket_frame_build(&frame, op, data, len); - net_send_stream(c, frame.data, frame.offset, kore_websocket_send_clean, NULL); + net_send_stream(c, frame.data, frame.offset, + kore_websocket_send_clean, NULL); /* net_send_stream() takes over the buffer data pointer. */ frame.data = NULL;