aboutsummaryrefslogtreecommitdiff
path: root/tests/survey.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-09-27 15:14:14 -0700
committerGarrett D'Amore <garrett@damore.org>2017-09-27 15:14:14 -0700
commit0736a958673683a9bfe0bf577b696f49c7bd8302 (patch)
tree93f1995f7e7130ffe31cc9701be6b390faabd6e7 /tests/survey.c
parent64db0f085be0c9efc6dca8d9e72d3e5a47cb792e (diff)
downloadnng-0736a958673683a9bfe0bf577b696f49c7bd8302.tar.gz
nng-0736a958673683a9bfe0bf577b696f49c7bd8302.tar.bz2
nng-0736a958673683a9bfe0bf577b696f49c7bd8302.zip
Remove last vestiges of integer option numbers.
Diffstat (limited to 'tests/survey.c')
-rw-r--r--tests/survey.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/survey.c b/tests/survey.c
index 346f2f30..83971818 100644
--- a/tests/survey.c
+++ b/tests/survey.c
@@ -13,8 +13,6 @@
#include <string.h>
-extern const char *nng_opt_surveyor_surveytime;
-
#define APPENDSTR(m, s) nng_msg_append(m, s, strlen(s))
#define CHECKSTR(m, s) \
So(nng_msg_len(m) == strlen(s)); \
@@ -46,7 +44,7 @@ TestMain("SURVEY pattern", {
nng_msg *msg;
So(nng_setopt_usec(
- surv, nng_opt_surveyor_surveytime, 50000) == 0);
+ surv, NNG_OPT_SURVEYOR_SURVEYTIME, 50000) == 0);
So(nng_msg_alloc(&msg, 0) == 0);
So(nng_sendmsg(surv, msg, 0) == 0);
So(nng_recvmsg(surv, &msg, 0) == NNG_ETIMEDOUT);
@@ -85,7 +83,7 @@ TestMain("SURVEY pattern", {
nng_close(resp);
});
- So(nng_setopt_usec(surv, nng_opt_surveyor_surveytime, 50000) ==
+ So(nng_setopt_usec(surv, NNG_OPT_SURVEYOR_SURVEYTIME, 50000) ==
0);
So(nng_listen(surv, addr, NULL, 0) == 0);
So(nng_dial(resp, addr, NULL, 0) == 0);