commit | a25cab8beaab65ebe434b637ea29f34e6b672c4c | [log] [tgz] |
---|---|---|
author | Embedthis Software <dev@embedthis.com> | Wed Sep 09 08:49:48 2015 -0700 |
committer | Embedthis Software <dev@embedthis.com> | Wed Sep 09 08:49:48 2015 -0700 |
tree | 03cac4c435654a919d096a8617d94a23c43637aa | |
parent | a6b95f01cc8feb9d9099c4de4ade00cedf2c9ef8 [diff] [blame] |
FIX: compiler warning with recvfrom on 64-bit
diff --git a/library/net.c b/library/net.c index b892df9..b5d0688 100644 --- a/library/net.c +++ b/library/net.c
@@ -319,7 +319,7 @@ /* UDP: wait for a message, but keep it in the queue */ char buf[1] = { 0 }; - ret = recvfrom( bind_ctx->fd, buf, sizeof( buf ), MSG_PEEK, + ret = (int) recvfrom( bind_ctx->fd, buf, sizeof( buf ), MSG_PEEK, (struct sockaddr *) &client_addr, &n ); #if defined(_WIN32)