]> 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 af46171f39199b605af814f602dc1f30a866687c..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