diff options
| author | Evgeny Ermakov <22344340+unspecd@users.noreply.github.com> | 2021-01-02 04:09:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-02 01:09:55 -0800 |
| commit | 44b8e23f39e4753ba8e9b7999dd5158adaecb5dc (patch) | |
| tree | 4ef7a61c40332be2520610a004b75983f329ac64 /src/tools/perf/pubdrop.c | |
| parent | ed542ac45e00c9b2faa0b41f3c00de6e291e5678 (diff) | |
| download | nng-44b8e23f39e4753ba8e9b7999dd5158adaecb5dc.tar.gz nng-44b8e23f39e4753ba8e9b7999dd5158adaecb5dc.tar.bz2 nng-44b8e23f39e4753ba8e9b7999dd5158adaecb5dc.zip | |
Fix compilation errors when NNG_ELIDE_DEPRECATED is ON (#1392)
Diffstat (limited to 'src/tools/perf/pubdrop.c')
| -rw-r--r-- | src/tools/perf/pubdrop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/perf/pubdrop.c b/src/tools/perf/pubdrop.c index be51bb2f..41ac5ba0 100644 --- a/src/tools/perf/pubdrop.c +++ b/src/tools/perf/pubdrop.c @@ -202,13 +202,13 @@ sub_client(void *arg) if ((rv = nng_dial(sock, pa->addr, NULL, 0)) != 0) { die("Cannot listen: %s", nng_strerror(rv)); } - if ((rv = nng_setopt_ms(sock, NNG_OPT_RECONNMINT, 51)) != 0) { + if ((rv = nng_socket_set_ms(sock, NNG_OPT_RECONNMINT, 51)) != 0) { die("setopt: %s", nng_strerror(rv)); } - if ((rv = nng_setopt(sock, NNG_OPT_SUB_SUBSCRIBE, "", 0)) != 0) { + if ((rv = nng_socket_set(sock, NNG_OPT_SUB_SUBSCRIBE, "", 0)) != 0) { die("setopt: %s", nng_strerror(rv)); } - if ((rv = nng_setopt_ms(sock, NNG_OPT_RECVTIMEO, 10000)) != 0) { + if ((rv = nng_socket_set_ms(sock, NNG_OPT_RECVTIMEO, 10000)) != 0) { die("setopt: %s", nng_strerror(rv)); } |
