diff options
author | Bodo Möller <bodo@openssl.org> | 1999-09-03 14:06:09 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-09-03 14:06:09 +0000 |
commit | 497cc4b35ec0f60491490a82bfd8cc973fd6a0a2 (patch) | |
tree | 142ddfd0f1fcd86c4e1892fce98c17349358040c | |
parent | 1e4149350c1e52c3087bdf072e04b71544de061d (diff) |
Use closesocket macro consistently, not close directly, for easier
portability.
Submitted by: Lennart Bång
-rw-r--r-- | e_os.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -320,8 +320,8 @@ extern HINSTANCE _hInstance; # define SSLeay_Read(a,b,c) read((a),(b),(c)) # define SSLeay_Write(a,b,c) write((a),(b),(c)) -# define SHUTDOWN(fd) { shutdown((fd),0); close((fd)); } -# define SHUTDOWN2(fd) { shutdown((fd),2); close((fd)); } +# define SHUTDOWN(fd) { shutdown((fd),0); closesocket((fd)); } +# define SHUTDOWN2(fd) { shutdown((fd),2); closesocket((fd)); } # define INVALID_SOCKET (-1) # endif #endif |