From cb70c5e75d3cdc23f0264830b5eabf72c4b5543b Mon Sep 17 00:00:00 2001 From: Kobolog Date: Thu, 15 Mar 2012 15:15:44 +0300 Subject: [PATCH] fixed some typos --- include/zmq.h | 2 +- src/xrep.cpp | 8 ++++---- src/xrep.hpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/zmq.h b/include/zmq.h index a7000fc0..8bc3d901 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -230,7 +230,7 @@ ZMQ_EXPORT int zmq_term (zmq_ctx_t context); #define ZMQ_SNDTIMEO 28 #define ZMQ_IPV4ONLY 31 #define ZMQ_LAST_ENDPOINT 32 -#define ZMQ_FAIL_UNROUTEABLE 33 +#define ZMQ_FAIL_UNROUTABLE 33 /* Message options */ #define ZMQ_MORE 1 diff --git a/src/xrep.cpp b/src/xrep.cpp index eef994fc..c7e82b15 100644 --- a/src/xrep.cpp +++ b/src/xrep.cpp @@ -34,7 +34,7 @@ zmq::xrep_t::xrep_t (class ctx_t *parent_, uint32_t tid_) : current_out (NULL), more_out (false), next_peer_id (generate_random ()), - fail_unrouteable(false) + fail_unroutable(false) { options.type = ZMQ_XREP; @@ -86,12 +86,12 @@ int zmq::xrep_t::xsetsockopt (int option_, const void *optval_, return -1; } - if(sizeof(optvallen_) != sizeof(uint64_t)) { + if(sizeof(optvallen_) != sizeof(int)) { errno = EINVAL; return -1; } - fail_unroutable = *((const uint64_t*) optval_); + fail_unroutable = *((const int*) optval_); return 0; } @@ -164,7 +164,7 @@ int zmq::xrep_t::xsend (msg_t *msg_, int flags_) } rc = empty.close (); errno_assert (rc == 0); - } else if(fail_unreachable) { + } else if(fail_unroutable) { more_out = false; retval = EHOSTUNREACH; } diff --git a/src/xrep.hpp b/src/xrep.hpp index 06286a26..6377c557 100644 --- a/src/xrep.hpp +++ b/src/xrep.hpp @@ -102,7 +102,7 @@ namespace zmq uint32_t next_peer_id; // If true, fail on unroutable messages instead of silently dropping them. - bool fail_unrouteable; + bool fail_unroutable; xrep_t (const xrep_t&); const xrep_t &operator = (const xrep_t&);