diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-12-16 17:30:42 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-12-16 17:30:42 +0100 |
commit | 6eb6bbfe8e504a611145f454f4045e8f49fd5e44 (patch) | |
tree | baba850cc86ee2d9d61de89da1cdfe408ad8694a /lib/gnutls_alert.c | |
parent | bdcfdac13179eccee6294402f2654fece149f82b (diff) | |
download | gnutls-6eb6bbfe8e504a611145f454f4045e8f49fd5e44.tar.gz |
Indented code. Use same indentation but with -nut to avoid usage of tabs. In several editors tabs can be configured not to be 8 spaces and this produces artifacts with the current indentation that is a mixture of tabs and spaces.
Diffstat (limited to 'lib/gnutls_alert.c')
-rw-r--r-- | lib/gnutls_alert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnutls_alert.c b/lib/gnutls_alert.c index 1560d55879..2f65d19ab0 100644 --- a/lib/gnutls_alert.c +++ b/lib/gnutls_alert.c @@ -118,7 +118,7 @@ gnutls_alert_get_name (gnutls_alert_description_t alert) **/ int gnutls_alert_send (gnutls_session_t session, gnutls_alert_level_t level, - gnutls_alert_description_t desc) + gnutls_alert_description_t desc) { uint8_t data[2]; int ret; @@ -131,11 +131,11 @@ gnutls_alert_send (gnutls_session_t session, gnutls_alert_level_t level, if (name == NULL) name = "(unknown)"; _gnutls_record_log ("REC: Sending Alert[%d|%d] - %s\n", data[0], - data[1], name); + data[1], name); if ((ret = _gnutls_send_int (session, GNUTLS_ALERT, -1, EPOCH_WRITE_CURRENT, data, - 2, MBUFFER_FLUSH)) >= 0) + 2, MBUFFER_FLUSH)) >= 0) return 0; else return ret; @@ -163,7 +163,7 @@ gnutls_error_to_alert (int err, int *level) int ret, _level = -1; switch (err) - { /* send appropriate alert */ + { /* send appropriate alert */ case GNUTLS_E_DECRYPTION_FAILED: /* GNUTLS_A_DECRYPTION_FAILED is not sent, because * it is not defined in SSL3. Note that we must |