aboutsummaryrefslogtreecommitdiff
path: root/tests/wss.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wss.c')
-rw-r--r--tests/wss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/wss.c b/tests/wss.c
index 6d7bc003..660ede3b 100644
--- a/tests/wss.c
+++ b/tests/wss.c
@@ -15,7 +15,6 @@
#include <nng/nng.h>
#include <nng/protocol/pair1/pair.h>
#include <nng/supplemental/tls/tls.h>
-#include <nng/transport/ws/websocket.h>
#include "convey.h"
#include "stubs.h"
@@ -136,7 +135,7 @@ check_props(nng_msg *msg)
size_t z;
nng_sockaddr la;
nng_sockaddr ra;
- char * buf;
+ char *buf;
size_t len;
p = nng_msg_get_pipe(msg);
@@ -155,8 +154,7 @@ check_props(nng_msg *msg)
// Request header
z = 0;
buf = NULL;
- So(nng_pipe_get(p, NNG_OPT_WS_REQUEST_HEADERS, buf, &z) ==
- NNG_EINVAL);
+ So(nng_pipe_get(p, NNG_OPT_WS_REQUEST_HEADERS, buf, &z) == NNG_EINVAL);
So(z > 0);
len = z;
So((buf = nng_alloc(len)) != NULL);