From 1f536972115dc4daf3a279fd557f069e00686a24 Mon Sep 17 00:00:00 2001 From: Martin Hurton Date: Sun, 10 Jun 2012 02:14:43 +0200 Subject: [PATCH] Use struct keyword consistently with sockaddr and sockaddr_in --- src/signaler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/signaler.cpp b/src/signaler.cpp index 58f2502c..a9be343e 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -298,7 +298,7 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_) wsa_assert (rc != SOCKET_ERROR); // Connect writer to the listener. - rc = connect (*w_, (sockaddr *) &addr, sizeof (addr)); + rc = connect (*w_, (struct sockaddr*) &addr, sizeof (addr)); wsa_assert (rc != SOCKET_ERROR); // Accept connection from writer. @@ -327,7 +327,7 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_) // // The bug will be fixed in V5.6 ECO4 and beyond. In the meantime, we'll // create the socket pair manually. - sockaddr_in lcladdr; + struct sockaddr_in lcladdr; memset (&lcladdr, 0, sizeof (lcladdr)); lcladdr.sin_family = AF_INET; lcladdr.sin_addr.s_addr = htonl (INADDR_LOOPBACK);