aboutsummaryrefslogtreecommitdiff
path: root/tests/reqctx.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-04-23 07:39:59 -0700
committerGarrett D'Amore <garrett@damore.org>2024-04-23 07:39:59 -0700
commit01817988f4631bdd8ee5cec9c6b69039712a93fe (patch)
treec8c4259671fbb586a466a8c5d623fc8c183f8927 /tests/reqctx.c
parentff00eac2401732e9efb6170ffb90100dcf6332a7 (diff)
downloadnng-01817988f4631bdd8ee5cec9c6b69039712a93fe.tar.gz
nng-01817988f4631bdd8ee5cec9c6b69039712a93fe.tar.bz2
nng-01817988f4631bdd8ee5cec9c6b69039712a93fe.zip
Move the rest of the functionality from platform.h into core.
This also deprecates supplemental/util/platform.h.
Diffstat (limited to 'tests/reqctx.c')
-rw-r--r--tests/reqctx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/reqctx.c b/tests/reqctx.c
index e878037f..47222c00 100644
--- a/tests/reqctx.c
+++ b/tests/reqctx.c
@@ -1,5 +1,5 @@
//
-// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -13,7 +13,6 @@
#include <nng/nng.h>
#include <nng/protocol/reqrep0/rep.h>
#include <nng/protocol/reqrep0/req.h>
-#include <nng/supplemental/util/platform.h>
#include "convey.h"
#include "stubs.h"
@@ -22,9 +21,9 @@ static struct {
nng_aio *aio;
enum { START, SEND, RECV } state;
nng_socket s;
- nng_msg * msg;
+ nng_msg *msg;
int cnt;
- nng_mtx * mtx;
+ nng_mtx *mtx;
} rep_state;
void
@@ -117,7 +116,8 @@ TestMain("REQ concurrent contexts", {
nng_aio_set_timeout(saios[i], 5000);
}
- So(nng_socket_set_int(rep_state.s, NNG_OPT_SENDBUF, NCTX) == 0);
+ So(nng_socket_set_int(rep_state.s, NNG_OPT_SENDBUF, NCTX) ==
+ 0);
So(i == NCTX);
for (i = 0; i < NCTX; i++) {
uint32_t tmp;
@@ -230,7 +230,7 @@ TestMain("REQ concurrent contexts", {
Convey("Given a socket and a context", {
nng_socket req;
nng_ctx ctx;
- nng_aio * aio;
+ nng_aio *aio;
So(nng_req0_open(&req) == 0);
So(nng_ctx_open(&ctx, req) == 0);