aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nng_compat.c3
-rw-r--r--src/nng_compat.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/nng_compat.c b/src/nng_compat.c
index 9515dc31..160fd33d 100644
--- a/src/nng_compat.c
+++ b/src/nng_compat.c
@@ -622,7 +622,7 @@ nn_setsockopt(int s, int nnlevel, int nnopt, const void *valp, size_t sz)
break;
case NN_SURVEYOR:
switch (nnopt) {
- case NN_SURVEY_DEADLINE:
+ case NN_SURVEYOR_DEADLINE:
opt = NNG_OPT_SURVEYTIME;
mscvt = 1;
break;
@@ -630,6 +630,7 @@ nn_setsockopt(int s, int nnlevel, int nnopt, const void *valp, size_t sz)
errno = ENOPROTOOPT;
return (-1);
}
+ break;
default:
errno = ENOPROTOOPT;
return (-1);
diff --git a/src/nng_compat.h b/src/nng_compat.h
index cd189b2d..e83c20b8 100644
--- a/src/nng_compat.h
+++ b/src/nng_compat.h
@@ -1,5 +1,6 @@
//
// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+// Copyright 2017 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -218,7 +219,7 @@ extern "C" {
#define NN_SUB_SUBSCRIBE (NN_SUB * 16 + 1)
#define NN_SUB_UNSUBSCRIBE (NN_SUB * 16 + 2)
#define NN_REQ_RESEND_IVL (NN_REQ * 16 + 1)
-#define NN_SURVEY_DEADLINE (NN_SURVEYOR * 16 + 1)
+#define NN_SURVEYOR_DEADLINE (NN_SURVEYOR * 16 + 1)
// Level options for tranports
#define NN_INPROC (-1)