summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-14 12:23:48 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-15 06:56:06 +0200
commit71cf5791422c7a461520fce8225342c27821e774 (patch)
treec7e28596138efe005e236667fb2bb79c1cff3544
parentee66c579dedf7130aa4d59afbf373f28c98eead5 (diff)
Minor improvement to error reporting
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r--src/tcp_address.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_address.cpp b/src/tcp_address.cpp
index ae69708..9132c37 100644
--- a/src/tcp_address.cpp
+++ b/src/tcp_address.cpp
@@ -162,7 +162,7 @@ int xs::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv4only_)
// Get the addresses.
ifaddrs* ifa = NULL;
int rc = getifaddrs (&ifa);
- xs_assert (rc == 0);
+ errno_assert (rc == 0);
xs_assert (ifa != NULL);
// Find the corresponding network interface.