diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-04-23 07:39:59 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-04-23 07:39:59 -0700 |
| commit | 01817988f4631bdd8ee5cec9c6b69039712a93fe (patch) | |
| tree | c8c4259671fbb586a466a8c5d623fc8c183f8927 /tests/reqstress.c | |
| parent | ff00eac2401732e9efb6170ffb90100dcf6332a7 (diff) | |
| download | nng-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/reqstress.c')
| -rw-r--r-- | tests/reqstress.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/reqstress.c b/tests/reqstress.c index 89190c64..6696eace 100644 --- a/tests/reqstress.c +++ b/tests/reqstress.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 @@ -16,7 +16,6 @@ #include <nng/protocol/bus0/bus.h> #include <nng/protocol/reqrep0/rep.h> #include <nng/protocol/reqrep0/req.h> -#include <nng/supplemental/util/platform.h> #include <nng/transport/inproc/inproc.h> #include <nng/transport/ipc/ipc.h> #include <nng/transport/tcp/tcp.h> @@ -64,9 +63,9 @@ typedef struct test_case { int nrecv; int nsend; int nfail; - nng_aio * recv_aio; - nng_aio * send_aio; - nng_aio * time_aio; + nng_aio *recv_aio; + nng_aio *send_aio; + nng_aio *time_aio; char buf[32]; } test_case; @@ -144,7 +143,7 @@ static void req_time_cb(void *arg) { test_case *c = arg; - nng_msg * msg = NULL; + nng_msg *msg = NULL; int rv; if ((rv = nng_aio_result(c->time_aio)) != 0) { @@ -167,7 +166,7 @@ static void req_recv_cb(void *arg) { test_case *c = arg; - nng_msg * msg = NULL; + nng_msg *msg = NULL; int rv; if ((rv = nng_aio_result(c->recv_aio)) != 0) { |
