summaryrefslogtreecommitdiff
path: root/src/xsub.cpp
diff options
context:
space:
mode:
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);