diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-02 23:54:27 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-02 23:54:27 -0700 |
| commit | 02ec0b55cbee5de4d0fd688ce0ebddf08178dc98 (patch) | |
| tree | 6cb65f860f8f9992b14139f52bf065c48f7b5a58 /src/sp/protocol/pair1/pair1_test.c | |
| parent | 8bac5ccdf1de7334311459b9e2666e74a2c16c15 (diff) | |
| download | nng-02ec0b55cbee5de4d0fd688ce0ebddf08178dc98.tar.gz nng-02ec0b55cbee5de4d0fd688ce0ebddf08178dc98.tar.bz2 nng-02ec0b55cbee5de4d0fd688ce0ebddf08178dc98.zip | |
Replace `NNG_OPT_RAW` with `nng_socket_raw`.
Similar to the other identities, this simplifies code a bit.
Diffstat (limited to 'src/sp/protocol/pair1/pair1_test.c')
| -rw-r--r-- | src/sp/protocol/pair1/pair1_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sp/protocol/pair1/pair1_test.c b/src/sp/protocol/pair1/pair1_test.c index e0e6b3b2..8c6d433e 100644 --- a/src/sp/protocol/pair1/pair1_test.c +++ b/src/sp/protocol/pair1/pair1_test.c @@ -291,15 +291,13 @@ test_pair1_raw(void) bool raw; NUTS_PASS(nng_pair1_open(&s1)); - NUTS_PASS(nng_socket_get_bool(s1, NNG_OPT_RAW, &raw)); + NUTS_PASS(nng_socket_raw(s1, &raw)); NUTS_TRUE(raw == false); - NUTS_FAIL(nng_socket_set_bool(s1, NNG_OPT_RAW, true), NNG_EREADONLY); NUTS_PASS(nng_close(s1)); NUTS_PASS(nng_pair1_open_raw(&s1)); - NUTS_PASS(nng_socket_get_bool(s1, NNG_OPT_RAW, &raw)); + NUTS_PASS(nng_socket_raw(s1, &raw)); NUTS_TRUE(raw == true); - NUTS_FAIL(nng_socket_set_bool(s1, NNG_OPT_RAW, false), NNG_EREADONLY); NUTS_PASS(nng_close(s1)); } |
