summaryrefslogtreecommitdiff
path: root/random
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2012-06-21 11:09:06 +0200
committerWerner Koch <wk@gnupg.org>2012-06-21 11:09:06 +0200
commit20e423212c9710ee663e12dd0f62580ceb245a6f (patch)
tree669ae2fef8015957a58d7bdfda2071721a39ad23 /random
parentbaf0dc7e9c26167ab43ba2adebcf2f1abc9d9b3b (diff)
downloadlibgcrypt-20e423212c9710ee663e12dd0f62580ceb245a6f.tar.gz
Beautify last change.
* cipher/rijndael.c: Replace C99 feature from last patch. Keep cpp lines short. * random/rndhw.c: Keep cpp lines short. * src/hwfeatures.c (_gcry_detect_hw_features): Make cpp def chain better readable.
Diffstat (limited to 'random')
-rw-r--r--random/rndhw.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/random/rndhw.c b/random/rndhw.c
index c933cf90..0a5c9fa3 100644
--- a/random/rndhw.c
+++ b/random/rndhw.c
@@ -27,11 +27,14 @@
#undef USE_PADLOCK
#ifdef ENABLE_PADLOCK_SUPPORT
-# if ( (defined (__i386__) && SIZEOF_UNSIGNED_LONG == 4) || defined(__x86_64__) ) && defined (__GNUC__)
-# define USE_PADLOCK
+# ifdef __GNUC__
+# if (defined (__i386__) && SIZEOF_UNSIGNED_LONG == 4) || defined(__x86_64__)
+# define USE_PADLOCK 1
+# endif
# endif
#endif /*ENABLE_PADLOCK_SUPPORT*/
+
/* Keep track on whether the RNG has problems. */
static volatile int rng_failed;