Commit 5271bc9d authored by Richard Newton's avatar Richard Newton

Merge pull request #685 from hintjens/master

Build/test errors on OS/X with clang++
parents 9827a127 26d5ac40
...@@ -286,7 +286,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_, ...@@ -286,7 +286,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
break; break;
case ZMQ_ZAP_DOMAIN: case ZMQ_ZAP_DOMAIN:
if (optvallen_ >= 0 && optvallen_ < 256) { if (optvallen_ < 256) {
zap_domain.assign ((const char *) optval_, optvallen_); zap_domain.assign ((const char *) optval_, optvallen_);
return 0; return 0;
} }
......
...@@ -102,7 +102,6 @@ test_stream_to_dealer (void) ...@@ -102,7 +102,6 @@ test_stream_to_dealer (void)
assert (rc >= 0); assert (rc >= 0);
bytes_read += rc; bytes_read += rc;
} }
assert (rc == 97);
// First two bytes are major and minor version numbers. // First two bytes are major and minor version numbers.
assert (buffer [0] == 3); // ZMTP/3.0 assert (buffer [0] == 3); // ZMTP/3.0
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <assert.h>
#include <zmq_utils.h> #include <zmq_utils.h>
#ifdef HAVE_LIBSODIUM #ifdef HAVE_LIBSODIUM
# include <sodium.h> # include <sodium.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment