]> sjero.net Git - wget/blobdiff - src/gnutls.c
Use always close as it is defined by gnulib on platforms lacking it.
[wget] / src / gnutls.c
index 7da0c1be3a1ab8380b772bcced22596c8a61c596..0bb49ca533cd794b56ccd4420d74e51f31b15b0c 100644 (file)
@@ -165,11 +165,7 @@ wgnutls_close (int fd, void *arg)
   /*gnutls_bye (ctx->session, GNUTLS_SHUT_RDWR);*/
   gnutls_deinit (ctx->session);
   xfree (ctx);
-#ifndef WINDOWS
   close (fd);
-#else
-  closesocket (fd);
-#endif
 }
 
 /* gnutls_transport is the singleton that describes the SSL transport
@@ -181,7 +177,7 @@ static struct transport_implementation wgnutls_transport = {
 };
 
 bool
-ssl_connect (int fd) 
+ssl_connect (int fd)
 {
   static const int cert_type_priority[] = {
     GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0