diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-08 22:14:07 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-08 22:17:10 +0100 |
commit | 76c93d23c073ef8b885503b7d28a31ffe2add6d8 (patch) | |
tree | 1dd2d22a197bc40c5330e516969a7cb1ae9bc96f /lib/random.h | |
parent | 559a144f6bbcbb611453f82e655dd7438c14d1a7 (diff) | |
download | gnutls-76c93d23c073ef8b885503b7d28a31ffe2add6d8.tar.gz |
reindented code
Diffstat (limited to 'lib/random.h')
-rw-r--r-- | lib/random.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/random.h b/lib/random.h index 5c0ea23555..0aa154527b 100644 --- a/lib/random.h +++ b/lib/random.h @@ -27,26 +27,25 @@ #include <crypto-backend.h> extern int crypto_rnd_prio; -extern void* gnutls_rnd_ctx; +extern void *gnutls_rnd_ctx; extern gnutls_crypto_rnd_st _gnutls_rnd_ops; inline static int -_gnutls_rnd (gnutls_rnd_level_t level, void *data, size_t len) +_gnutls_rnd(gnutls_rnd_level_t level, void *data, size_t len) { - if (len > 0) - { - return _gnutls_rnd_ops.rnd (gnutls_rnd_ctx, level, data, len); - } - return 0; + if (len > 0) { + return _gnutls_rnd_ops.rnd(gnutls_rnd_ctx, level, data, + len); + } + return 0; } -inline static void -_gnutls_rnd_refresh (void) +inline static void _gnutls_rnd_refresh(void) { - _gnutls_rnd_ops.rnd_refresh (gnutls_rnd_ctx); + _gnutls_rnd_ops.rnd_refresh(gnutls_rnd_ctx); } -void _gnutls_rnd_deinit (void); -int _gnutls_rnd_init (void); +void _gnutls_rnd_deinit(void); +int _gnutls_rnd_init(void); #endif |