summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorJack R. Dunaway <jack@wirebirdlabs.com>2016-04-25 13:24:27 -0500
committerJack R. Dunaway <jack@wirebirdlabs.com>2016-04-25 16:55:47 -0500
commitaae397558cdc1bbc038879d0e2a3993f6a2625f3 (patch)
tree6abedd5475a419f7c16c918ddf3bf8746d09a2c2 /src/utils
parent3d527e88a015541f5694714d277ba37321d57e86 (diff)
downloadnanomsg-aae397558cdc1bbc038879d0e2a3993f6a2625f3.tar.gz
fixes #670 MSVC x64 reports compiler warnings in efd.c
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/efd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/efd.c b/src/utils/efd.c
index b01f179..32abfa1 100644
--- a/src/utils/efd.c
+++ b/src/utils/efd.c
@@ -64,9 +64,9 @@ int nn_efd_wait (struct nn_efd *self, int timeout)
{
int rc;
struct timeval tv;
- int fd = self->r;
+ SOCKET fd = self->r;
- if (nn_slow (fd < 0)) {
+ if (nn_slow (fd == INVALID_SOCKET)) {
return -EBADF;
}
FD_SET (fd, &self->fds);