diff options
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/nngcat/nngcat.c | 3 | ||||
| -rw-r--r-- | src/tools/perf/pubdrop.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/nngcat/nngcat.c b/src/tools/nngcat/nngcat.c index bdf6823c..da3bd6d6 100644 --- a/src/tools/nngcat/nngcat.c +++ b/src/tools/nngcat/nngcat.c @@ -1065,8 +1065,7 @@ main(int ac, char **av) } for (struct topic *t = topics; t != NULL; t = t->next) { - rv = nng_socket_set( - sock, NNG_OPT_SUB_SUBSCRIBE, t->val, strlen(t->val)); + rv = nng_sub0_socket_subscribe(sock, t->val, strlen(t->val)); if (rv != 0) { fatal("Unable to subscribe to topic %s: %s", t->val, nng_strerror(rv)); diff --git a/src/tools/perf/pubdrop.c b/src/tools/perf/pubdrop.c index 0e493116..27d7802a 100644 --- a/src/tools/perf/pubdrop.c +++ b/src/tools/perf/pubdrop.c @@ -206,7 +206,7 @@ sub_client(void *arg) if ((rv = nng_socket_set_ms(sock, NNG_OPT_RECONNMINT, 51)) != 0) { die("setopt: %s", nng_strerror(rv)); } - if ((rv = nng_socket_set(sock, NNG_OPT_SUB_SUBSCRIBE, "", 0)) != 0) { + if ((rv = nng_sub0_socket_subscribe(sock, "", 0)) != 0) { die("setopt: %s", nng_strerror(rv)); } if ((rv = nng_socket_set_ms(sock, NNG_OPT_RECVTIMEO, 10000)) != 0) { |
