From da930314aafc6cc7b182f0bbfa8e06c0b743e62d Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:08:47 +0900 Subject: Names of context options shortened Signed-off-by: Martin Sustrik --- tests/max_sockets.cpp | 2 +- tests/reentrant.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3