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 /src/testing | |
| 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 'src/testing')
| -rw-r--r-- | src/testing/nuts.h | 1 | ||||
| -rw-r--r-- | src/testing/streams.c | 9 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/testing/nuts.h b/src/testing/nuts.h index da0f525f..e13a44da 100644 --- a/src/testing/nuts.h +++ b/src/testing/nuts.h @@ -48,7 +48,6 @@ extern void nng_fini(void); #include <nng/protocol/survey0/respond.h> #include <nng/protocol/survey0/survey.h> #include <nng/supplemental/tls/tls.h> -#include <nng/supplemental/util/platform.h> #include <nng/transport/ws/websocket.h> #include <supplemental/sha1/sha1.h> diff --git a/src/testing/streams.c b/src/testing/streams.c index 33c70c00..92d52f37 100644 --- a/src/testing/streams.c +++ b/src/testing/streams.c @@ -1,5 +1,5 @@ // -// Copyright 2020 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 @@ -11,14 +11,13 @@ #define TEST_NO_MAIN #include <nng/nng.h> -#include <nng/supplemental/util/platform.h> typedef struct { - uint8_t * base; + uint8_t *base; size_t rem; nng_iov iov; - nng_aio * upper_aio; - nng_aio * lower_aio; + nng_aio *upper_aio; + nng_aio *lower_aio; nng_stream *s; void (*submit)(nng_stream *, nng_aio *); } stream_xfr_t; |
