From 02ec0b55cbee5de4d0fd688ce0ebddf08178dc98 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 2 Nov 2024 23:54:27 -0700 Subject: Replace `NNG_OPT_RAW` with `nng_socket_raw`. Similar to the other identities, this simplifies code a bit. --- src/sp/protocol/pipeline0/pull_test.c | 2 +- src/sp/protocol/pipeline0/push_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp/protocol/pipeline0') diff --git a/src/sp/protocol/pipeline0/pull_test.c b/src/sp/protocol/pipeline0/pull_test.c index 59dcf8a8..74fd6046 100644 --- a/src/sp/protocol/pipeline0/pull_test.c +++ b/src/sp/protocol/pipeline0/pull_test.c @@ -241,7 +241,7 @@ test_pull_cooked(void) bool b; NUTS_PASS(nng_pull0_open(&s)); - NUTS_PASS(nng_socket_get_bool(s, NNG_OPT_RAW, &b)); + NUTS_PASS(nng_socket_raw(s, &b)); NUTS_TRUE(!b); NUTS_CLOSE(s); } diff --git a/src/sp/protocol/pipeline0/push_test.c b/src/sp/protocol/pipeline0/push_test.c index be60ba50..dd3328f3 100644 --- a/src/sp/protocol/pipeline0/push_test.c +++ b/src/sp/protocol/pipeline0/push_test.c @@ -410,7 +410,7 @@ test_push_cooked(void) bool b; NUTS_PASS(nng_push0_open(&s)); - NUTS_PASS(nng_socket_get_bool(s, NNG_OPT_RAW, &b)); + NUTS_PASS(nng_socket_raw(s, &b)); NUTS_TRUE(!b); NUTS_CLOSE(s); } -- cgit v1.2.3-70-g09d2