summaryrefslogtreecommitdiff
path: root/lib/gnutls_buffers.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-12-15 13:24:28 +0000
committerSimon Josefsson <simon@josefsson.org>2005-12-15 13:24:28 +0000
commit24214e48b4d4328d5a5afbfa19acbbbec30274c9 (patch)
treef80ae5a0d9a98f571a0ff1182265c30451cea62c /lib/gnutls_buffers.c
parent667527f161cb4a694a78db129cb2d4519800260b (diff)
downloadgnutls-24214e48b4d4328d5a5afbfa19acbbbec30274c9.tar.gz
Indent more.
Diffstat (limited to 'lib/gnutls_buffers.c')
-rw-r--r--lib/gnutls_buffers.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c
index 7034e5e868..497f196284 100644
--- a/lib/gnutls_buffers.c
+++ b/lib/gnutls_buffers.c
@@ -94,30 +94,30 @@ _gnutls_record_buffer_put (content_type_t type,
{
case GNUTLS_APPLICATION_DATA:
buf = &session->internals.application_data_buffer;
- _gnutls_buffers_log("BUF[REC]: Inserted %d bytes of Data(%d)\n",
- length, type);
+ _gnutls_buffers_log ("BUF[REC]: Inserted %d bytes of Data(%d)\n",
+ length, type);
break;
case GNUTLS_HANDSHAKE:
buf = &session->internals.handshake_data_buffer;
- _gnutls_buffers_log("BUF[HSK]: Inserted %d bytes of Data(%d)\n",
- length, type);
+ _gnutls_buffers_log ("BUF[HSK]: Inserted %d bytes of Data(%d)\n",
+ length, type);
break;
case GNUTLS_INNER_APPLICATION:
buf = &session->internals.ia_data_buffer;
- _gnutls_buffers_log("BUF[IA]: Inserted %d bytes of Data(%d)\n",
- length, type);
+ _gnutls_buffers_log ("BUF[IA]: Inserted %d bytes of Data(%d)\n",
+ length, type);
break;
default:
- gnutls_assert();
+ gnutls_assert ();
return GNUTLS_E_INVALID_REQUEST;
}
if (_gnutls_buffer_append (buf, data, length) < 0)
{
- gnutls_assert();
+ gnutls_assert ();
return GNUTLS_E_MEMORY_ERROR;
}
@@ -220,16 +220,16 @@ _gnutls_record_buffer_get (content_type_t type,
if (length > session->internals.ia_data_buffer.length)
length = session->internals.ia_data_buffer.length;
- _gnutls_buffers_log("BUF[REC][IA]: Read %d bytes of Data(%d)\n",
- length, type);
+ _gnutls_buffers_log ("BUF[REC][IA]: Read %d bytes of Data(%d)\n",
+ length, type);
session->internals.ia_data_buffer.length -= length;
- memcpy(data, session->internals.ia_data_buffer.data, length);
+ memcpy (data, session->internals.ia_data_buffer.data, length);
/* overwrite buffer */
- memmove(session->internals.ia_data_buffer.data,
- &session->internals.ia_data_buffer.data[length],
- session->internals.ia_data_buffer.length);
+ memmove (session->internals.ia_data_buffer.data,
+ &session->internals.ia_data_buffer.data[length],
+ session->internals.ia_data_buffer.length);
break;