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 --- src/ctx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ctx.cpp b/src/ctx.cpp index 917c3e6..c80a3c3 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -139,7 +139,7 @@ int xs::ctx_t::terminate () int xs::ctx_t::setctxopt (int option_, const void *optval_, size_t optvallen_) { switch (option_) { - case XS_CTX_MAX_SOCKETS: + case XS_MAX_SOCKETS: if (optvallen_ != sizeof (int) || *((int*) optval_) < 0) { errno = EINVAL; return -1; @@ -148,7 +148,7 @@ int xs::ctx_t::setctxopt (int option_, const void *optval_, size_t optvallen_) max_sockets = *((int*) optval_); opt_sync.unlock (); break; - case XS_CTX_REENTRANT: + case XS_REENTRANT: if (optvallen_ != sizeof (int) || (*((int*) optval_) != 0 && *((int*) optval_) != 1)) { errno = EINVAL; -- cgit v1.2.3