summaryrefslogtreecommitdiff
path: root/src/xsub.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-05-31 09:09:43 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-06-01 11:02:35 +0200
commit58d54740785eb2c7208a01afb5bd9736e5808069 (patch)
tree19d24c817201842b3781328d5f1a5fb25138a496 /src/xsub.cpp
parentf84ebfdbc64b774b1f00f5b98494e66b8a88fb0b (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/xsub.cpp')
-rw-r--r--src/xsub.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xsub.cpp b/src/xsub.cpp
index 9255ceb..0a9ff7e 100644
--- a/src/xsub.cpp
+++ b/src/xsub.cpp
@@ -200,7 +200,7 @@ void xs::xsub_t::send_subscription (pipe_t *pipe_, bool subscribe_,
// Create the subsctription message.
msg_t msg;
int rc = msg.init_size (size_ + 4);
- xs_assert (rc == 0);
+ errno_assert (rc == 0);
unsigned char *data = (unsigned char*) msg.data ();
put_uint16 (data, subscribe_ ? SP_PUBSUB_CMD_SUBSCRIBE :
SP_PUBSUB_CMD_UNSUBSCRIBE);