summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:08:47 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:08:47 +0900
commitda930314aafc6cc7b182f0bbfa8e06c0b743e62d (patch)
tree827e85effd4680cee8613781898fe7b0d053353c /tests
parent1e01248efc113cc9389f795157400a634730823e (diff)
Names of context options shortened
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
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