diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-03 08:02:22 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-03 08:38:19 -0800 |
| commit | 960e96723f6cfe64c370b7c1168c664f4c49deae (patch) | |
| tree | b342ee0f9888daf0783d8b8c7663a7b3a8cf266d /src/sp/transport/ipc | |
| parent | 86d073f3a7511b3045f5b183954eb6cd633fe930 (diff) | |
| download | nng-960e96723f6cfe64c370b7c1168c664f4c49deae.tar.gz nng-960e96723f6cfe64c370b7c1168c664f4c49deae.tar.bz2 nng-960e96723f6cfe64c370b7c1168c664f4c49deae.zip | |
fixes #2061 Move IPC parameters from uint64 to int
Diffstat (limited to 'src/sp/transport/ipc')
| -rw-r--r-- | src/sp/transport/ipc/ipc_test.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/sp/transport/ipc/ipc_test.c b/src/sp/transport/ipc/ipc_test.c index 1c758125..4d8f3ab7 100644 --- a/src/sp/transport/ipc/ipc_test.c +++ b/src/sp/transport/ipc/ipc_test.c @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Cody Piersall <cody.piersall@gmail.com> // // This software is supplied under the terms of the MIT License, a @@ -620,7 +620,7 @@ test_ipc_pipe_peer(void) nng_socket s0, s1; nng_msg *msg; nng_pipe p; - uint64_t id; + int id; char *addr; NUTS_ADDR(addr, "ipc"); @@ -639,23 +639,22 @@ test_ipc_pipe_peer(void) p = nng_msg_get_pipe(msg); NUTS_ASSERT(nng_pipe_id(p) != -1); #if defined(NNG_PLATFORM_DARWIN) || defined(NNG_PLATFORM_LINUX) - NUTS_PASS(nng_pipe_get_uint64(p, NNG_OPT_PEER_PID, &id)); - NUTS_ASSERT(id == (uint64_t) getpid()); + NUTS_PASS(nng_pipe_get_int(p, NNG_OPT_PEER_PID, &id)); + NUTS_ASSERT(id == (int) getpid()); #endif #if defined(NNG_PLATFORM_DARWIN) || defined(NNG_PLATFORM_LINUX) - NUTS_PASS(nng_pipe_get_uint64(p, NNG_OPT_PEER_UID, &id)); - NUTS_ASSERT(id == (uint64_t) getuid()); + NUTS_PASS(nng_pipe_get_int(p, NNG_OPT_PEER_UID, &id)); + NUTS_ASSERT(id == (int) getuid()); #endif #if defined(NNG_PLATFORM_DARWIN) || defined(NNG_PLATFORM_LINUX) - NUTS_PASS(nng_pipe_get_uint64(p, NNG_OPT_PEER_GID, &id)); - NUTS_ASSERT(id == (uint64_t) getgid()); + NUTS_PASS(nng_pipe_get_int(p, NNG_OPT_PEER_GID, &id)); + NUTS_ASSERT(id == (int) getgid()); #endif #if defined(NNG_PLATFORM_SUNOS) - NUTS_PASS(nng_pipe_get_uint64(p, NNG_OPT_PEER_ZONEID, &id)); - NUTS_ASSERT(id == (uint64_t) getzoneid()); + NUTS_PASS(nng_pipe_get_int(p, NNG_OPT_PEER_ZONEID, &id)); + NUTS_ASSERT(id == (int) getzoneid()); #else - NUTS_FAIL( - nng_pipe_get_uint64(p, NNG_OPT_PEER_ZONEID, &id), NNG_ENOTSUP); + NUTS_FAIL(nng_pipe_get_int(p, NNG_OPT_PEER_ZONEID, &id), NNG_ENOTSUP); #endif nng_msg_free(msg); |
