summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/max_sockets.cpp2
-rw-r--r--tests/reentrant.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/max_sockets.cpp b/tests/max_sockets.cpp
index 4ce6cb9..424e8b3 100644
--- a/tests/max_sockets.cpp
+++ b/tests/max_sockets.cpp
@@ -28,7 +28,7 @@ int XS_TEST_MAIN ()
void *ctx = xs_init (1);
assert (ctx);
int max_sockets = 1;
- int rc = xs_setctxopt (ctx, XS_CTX_MAX_SOCKETS, &max_sockets,
+ int rc = xs_setctxopt (ctx, XS_MAX_SOCKETS, &max_sockets,
sizeof (max_sockets));
assert (rc == 0);
diff --git a/tests/reentrant.cpp b/tests/reentrant.cpp
index a4b2760..2832b1e 100644
--- a/tests/reentrant.cpp
+++ b/tests/reentrant.cpp
@@ -28,7 +28,7 @@ int XS_TEST_MAIN ()
void *ctx = xs_init (1);
assert (ctx);
int val = 1;
- int rc = xs_setctxopt (ctx, XS_CTX_REENTRANT, &val, sizeof (val));
+ int rc = xs_setctxopt (ctx, XS_REENTRANT, &val, sizeof (val));
assert (rc == 0);
// Do a set of operations to make sure that REENTRANT option doesn't