summaryrefslogtreecommitdiff
path: root/src
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 /src
parent1e01248efc113cc9389f795157400a634730823e (diff)
Names of context options shortened
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r--src/ctx.cpp4
1 files changed, 2 insertions, 2 deletions
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;