diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-08 09:07:29 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-08 09:07:29 -0700 |
| commit | 64a5ba9c39952a46b9d4c091dff0c0cfe1d22b75 (patch) | |
| tree | 079ed01add063f7a5dc82aedea74266ce2bfcc93 | |
| parent | 4b53fab25223691f9a4624780f34fe84d18fbedf (diff) | |
| download | nng-64a5ba9c39952a46b9d4c091dff0c0cfe1d22b75.tar.gz nng-64a5ba9c39952a46b9d4c091dff0c0cfe1d22b75.tar.bz2 nng-64a5ba9c39952a46b9d4c091dff0c0cfe1d22b75.zip | |
Fix compilation warnings.
| -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); } |
