From b5e5e101263d6ab7ccb14eaa3944e9a4a3aab3e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lourens=20Naud=C3=A9?= Date: Tue, 23 Apr 2013 22:58:28 +0100 Subject: [PATCH] Fix return code redeclaration for platforms with SO_NOSIGPIPE --- src/stream_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index f2c98c15..961b1e7d 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -99,7 +99,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, cons // Make sure that SIGPIPE signal is not generated when writing to a // connection that was already closed by the peer. int set = 1; - int rc = setsockopt (s, SOL_SOCKET, SO_NOSIGPIPE, &set, sizeof (int)); + rc = setsockopt (s, SOL_SOCKET, SO_NOSIGPIPE, &set, sizeof (int)); errno_assert (rc == 0); #endif }