aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-26 21:13:54 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-26 21:13:54 -0800
commit93d72cab018ddbdb35a03e450b5725a2a7e58eb6 (patch)
tree412a842fc59b0dde87b4f11df182ad05f7f505fa /src
parentaaaa3ce10abb95fe0dfdb9700c69b34112b25252 (diff)
downloadnng-93d72cab018ddbdb35a03e450b5725a2a7e58eb6.tar.gz
nng-93d72cab018ddbdb35a03e450b5725a2a7e58eb6.tar.bz2
nng-93d72cab018ddbdb35a03e450b5725a2a7e58eb6.zip
Fixes for BUS protocol in compat, test suite, and timing in compat tests.
Diffstat (limited to 'src')
-rw-r--r--src/nng_compat.c2
-rw-r--r--src/nng_compat.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nng_compat.c b/src/nng_compat.c
index 3192a5f7..24085f30 100644
--- a/src/nng_compat.c
+++ b/src/nng_compat.c
@@ -734,7 +734,7 @@ nn_cmsg_next(struct nn_msghdr *mh, struct nn_cmsghdr *first)
void
nn_sleep(uint64_t msec)
{
- nng_usleep(msec / 1000);
+ nng_usleep(msec * 1000);
}
diff --git a/src/nng_compat.h b/src/nng_compat.h
index aa0f5a2c..edf4bd6a 100644
--- a/src/nng_compat.h
+++ b/src/nng_compat.h
@@ -74,7 +74,7 @@ extern "C" {
#define NN_PULL (NN_PROTO_PIPELINE * 16 + 1)
#define NN_SURVEYOR (NN_PROTO_SURVEY * 16 + 2)
#define NN_RESPONDENT (NN_PROTO_SURVEY * 16 + 3)
-#define NN_BUS (NN_PROTO_BUS * 16 + 1)
+#define NN_BUS (NN_PROTO_BUS * 16 + 0)
#define NN_SOCKADDR_MAX 128
#define NN_SOL_SOCKET 0