mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 11:06:52 +01:00
Problem: old C-style casts used
Solution: replace by static_cast/reinterpret_cast
This commit is contained in:
@@ -252,7 +252,8 @@ zmq::fd_t zmq::ipc_connecter_t::connect ()
|
||||
#else
|
||||
socklen_t len = sizeof (err);
|
||||
#endif
|
||||
int rc = getsockopt (s, SOL_SOCKET, SO_ERROR, (char *) &err, &len);
|
||||
int rc = getsockopt (s, SOL_SOCKET, SO_ERROR,
|
||||
reinterpret_cast<char *> (&err), &len);
|
||||
if (rc == -1) {
|
||||
if (errno == ENOPROTOOPT)
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user