Explicitly cast INVALID_SOCKET to (int) to address warnings on Windows.
authorAndy Polyakov <appro@openssl.org>
Wed, 30 Sep 2015 08:15:03 +0000 (10:15 +0200)
committerAndy Polyakov <appro@openssl.org>
Mon, 5 Oct 2015 07:22:54 +0000 (09:22 +0200)
commitb13fdc4860b5e1bf615b113950788a138e68ae7f
tree231723cef2d8432fa559e011d5c7eed93a2482c5
parentf93ad22f6adb00e722c130e792799467f3927b56
Explicitly cast INVALID_SOCKET to (int) to address warnings on Windows.

Even though SOCKET is effectively declared as (void *) on Windows, it's
not actually a pointer, but an index within per-process table of
kernel objects. The table size is actually limited and its upper limit
is far below upper limit for signed 32-bit integer. This is what makes
cast in question possible.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
apps/s_socket.c
crypto/bio/b_sock.c
crypto/bio/bss_acpt.c
crypto/bio/bss_conn.c
e_os.h