Home GnuPG

w32:estream: Use INVALID_SOCKET to check invalid socket.

Description

w32:estream: Use INVALID_SOCKET to check invalid socket.

* src/estream.c (IS_INVALID_SOCKET): New.
(func_sock_read, func_sock_write, func_sock_ioctl, func_sock_destroy):
Use IS_INVALID_SOCKET.

It is possible for some architectures that the value of extended -1
and ~0 is different in C. Better to avoid the issue in advance.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Thu, Feb 26, 1:53 AM
Parents
rE722bf3422d7e: doc: Update Known Problems section in README.
Branches
Unknown
Tags
Unknown
References
HEAD -> master