Problem: old C-style casts used

Solution: replace by static_cast/reinterpret_cast
This commit is contained in:
Simon Giesecke
2018-05-27 06:48:49 -04:00
parent e3c73d9881
commit d767909b50
10 changed files with 32 additions and 26 deletions

View File

@@ -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;