summaryrefslogtreecommitdiff
path: root/lib/system_override.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-08 22:14:07 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-08 22:17:10 +0100
commit76c93d23c073ef8b885503b7d28a31ffe2add6d8 (patch)
tree1dd2d22a197bc40c5330e516969a7cb1ae9bc96f /lib/system_override.c
parent559a144f6bbcbb611453f82e655dd7438c14d1a7 (diff)
downloadgnutls-76c93d23c073ef8b885503b7d28a31ffe2add6d8.tar.gz
reindented code
Diffstat (limited to 'lib/system_override.c')
-rw-r--r--lib/system_override.c41
1 files changed, 20 insertions, 21 deletions
diff --git a/lib/system_override.c b/lib/system_override.c
index 2fa82df0b3..d673f2dd90 100644
--- a/lib/system_override.c
+++ b/lib/system_override.c
@@ -36,7 +36,7 @@
#include <errno.h>
#ifdef _WIN32
-# include <windows.h>
+#include <windows.h>
#endif
/**
@@ -56,10 +56,9 @@
* msvcr71.dll and gnutls is linked to msvcrt.dll).
*
**/
-void
-gnutls_transport_set_errno (gnutls_session_t session, int err)
+void gnutls_transport_set_errno(gnutls_session_t session, int err)
{
- session->internals.errnum = err;
+ session->internals.errnum = err;
}
/**
@@ -77,10 +76,10 @@ gnutls_transport_set_errno (gnutls_session_t session, int err)
* ssize_t (*gnutls_pull_func)(gnutls_transport_ptr_t, void*, size_t);
**/
void
-gnutls_transport_set_pull_function (gnutls_session_t session,
- gnutls_pull_func pull_func)
+gnutls_transport_set_pull_function(gnutls_session_t session,
+ gnutls_pull_func pull_func)
{
- session->internals.pull_func = pull_func;
+ session->internals.pull_func = pull_func;
}
/**
@@ -104,10 +103,10 @@ gnutls_transport_set_pull_function (gnutls_session_t session,
* Since: 3.0
**/
void
-gnutls_transport_set_pull_timeout_function (gnutls_session_t session,
- gnutls_pull_timeout_func func)
+gnutls_transport_set_pull_timeout_function(gnutls_session_t session,
+ gnutls_pull_timeout_func func)
{
- session->internals.pull_timeout_func = func;
+ session->internals.pull_timeout_func = func;
}
/**
@@ -128,11 +127,11 @@ gnutls_transport_set_pull_timeout_function (gnutls_session_t session,
*
**/
void
-gnutls_transport_set_push_function (gnutls_session_t session,
- gnutls_push_func push_func)
+gnutls_transport_set_push_function(gnutls_session_t session,
+ gnutls_push_func push_func)
{
- session->internals.push_func = push_func;
- session->internals.vec_push_func = NULL;
+ session->internals.push_func = push_func;
+ session->internals.vec_push_func = NULL;
}
/**
@@ -151,11 +150,11 @@ gnutls_transport_set_push_function (gnutls_session_t session,
* Since: 2.12.0
**/
void
-gnutls_transport_set_vec_push_function (gnutls_session_t session,
- gnutls_vec_push_func vec_func)
+gnutls_transport_set_vec_push_function(gnutls_session_t session,
+ gnutls_vec_push_func vec_func)
{
- session->internals.push_func = NULL;
- session->internals.vec_push_func = vec_func;
+ session->internals.push_func = NULL;
+ session->internals.vec_push_func = vec_func;
}
/**
@@ -173,8 +172,8 @@ gnutls_transport_set_vec_push_function (gnutls_session_t session,
* Since: 2.12.0
**/
void
-gnutls_transport_set_errno_function (gnutls_session_t session,
- gnutls_errno_func errno_func)
+gnutls_transport_set_errno_function(gnutls_session_t session,
+ gnutls_errno_func errno_func)
{
- session->internals.errno_func = errno_func;
+ session->internals.errno_func = errno_func;
}