summaryrefslogtreecommitdiff
path: root/lib/system.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-01-06 09:59:33 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-01-06 09:59:33 +0100
commitf53a7a21142e96cb9a2f807ba875179c7b3d266e (patch)
treedec2081eec1518c2f5be505a78f77fda948e1060 /lib/system.c
parentf1a141e5c247b706fb2022d50666d5f5a71bb6ff (diff)
downloadgnutls-f53a7a21142e96cb9a2f807ba875179c7b3d266e.tar.gz
Revert "in DTLS don't use writev() when multiple packets which exceed MTU are queued"
This reverts commit 43082a67c7514d65301d157fb567a133138a85ab.
Diffstat (limited to 'lib/system.c')
-rw-r--r--lib/system.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/system.c b/lib/system.c
index 9504cfe8c6..d866e19aa3 100644
--- a/lib/system.c
+++ b/lib/system.c
@@ -60,12 +60,6 @@ static HMODULE Crypt32_dll;
/* System specific function wrappers.
*/
-ssize_t
-system_write(gnutls_transport_ptr ptr, const void *data, size_t data_size)
-{
- return send(GNUTLS_POINTER_TO_INT(ptr), data, data_size, 0);
-}
-
#ifdef _WIN32
/* Do not use the gnulib functions for sending and receiving data.
* Using them makes gnutls only working with gnulib applications.
@@ -100,6 +94,11 @@ int system_errno(gnutls_transport_ptr p)
return ret;
}
+ssize_t
+system_write(gnutls_transport_ptr ptr, const void *data, size_t data_size)
+{
+ return send(GNUTLS_POINTER_TO_INT(ptr), data, data_size, 0);
+}
#else /* POSIX */
int system_errno(gnutls_transport_ptr_t ptr)
{