diff options
| -rw-r--r-- | src/nng_compat.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nng_compat.c b/src/nng_compat.c index 88e2f69c..cb8d29ab 100644 --- a/src/nng_compat.c +++ b/src/nng_compat.c @@ -256,7 +256,6 @@ nn_flags(int flags) int nn_send(int s, const void *buf, size_t len, int flags) { - int rv; struct nn_iovec iov; struct nn_msghdr hdr; @@ -274,8 +273,6 @@ nn_send(int s, const void *buf, size_t len, int flags) int nn_recv(int s, void *buf, size_t len, int flags) { - int rv; - struct nn_iovec iov; struct nn_msghdr hdr; @@ -655,7 +652,7 @@ nn_getsockopt(int s, int nnlevel, int nnopt, void *valp, size_t *szp) if (mscvt) { // We have to convert value to ms... - *msecp = (usec / 1000); + *msecp = (int) (usec / 1000); *szp = sizeof(int); } |
