diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-05-31 09:09:43 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-06-01 11:02:35 +0200 |
commit | 58d54740785eb2c7208a01afb5bd9736e5808069 (patch) | |
tree | 19d24c817201842b3781328d5f1a5fb25138a496 /src/session_base.cpp | |
parent | f84ebfdbc64b774b1f00f5b98494e66b8a88fb0b (diff) |
Assertions improved
This patch is replaces generic xs_asserts by errno_assers and
alloc_asserts as appropriate.
It is based on 0MQ patch by Martin Hurton.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/session_base.cpp')
-rw-r--r-- | src/session_base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session_base.cpp b/src/session_base.cpp index da9ee8e..12d2e8d 100644 --- a/src/session_base.cpp +++ b/src/session_base.cpp @@ -461,7 +461,7 @@ void xs::session_base_t::start_connecting (bool wait_) alloc_assert (pgm_sender); int rc = pgm_sender->init (udp_encapsulation, address.c_str ()); - xs_assert (rc == 0); + errno_assert (rc == 0); send_attach (this, pgm_sender); } @@ -473,7 +473,7 @@ void xs::session_base_t::start_connecting (bool wait_) alloc_assert (pgm_receiver); int rc = pgm_receiver->init (udp_encapsulation, address.c_str ()); - xs_assert (rc == 0); + errno_assert (rc == 0); send_attach (this, pgm_receiver); } |