From 64a5ba9c39952a46b9d4c091dff0c0cfe1d22b75 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 8 Aug 2017 09:07:29 -0700 Subject: Fix compilation warnings. --- src/nng_compat.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2