[tor-commits] [tor/master] Remove extraneous #if/#endif wrapper in crypto_rand.c

dgoulet at torproject.org dgoulet at torproject.org
Thu Feb 14 16:48:44 UTC 2019


commit 21d184a184b2ac4e4b8a1ff9853cb50de31a41fe
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Feb 6 12:37:02 2019 -0500

    Remove extraneous #if/#endif wrapper in crypto_rand.c
    
    I don't know how this got here, but this kind of a wrapper only
    belongs in a header file.
---
 src/lib/crypt_ops/crypto_rand.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/lib/crypt_ops/crypto_rand.c b/src/lib/crypt_ops/crypto_rand.c
index f45ff719d..5a739a8f1 100644
--- a/src/lib/crypt_ops/crypto_rand.c
+++ b/src/lib/crypt_ops/crypto_rand.c
@@ -11,7 +11,6 @@
  * number generators, and working with randomness.
  **/
 
-#ifndef CRYPTO_RAND_PRIVATE
 #define CRYPTO_RAND_PRIVATE
 
 #include "lib/crypt_ops/crypto_rand.h"
@@ -737,5 +736,3 @@ crypto_force_rand_ssleay(void)
 #endif
   return 0;
 }
-
-#endif /* !defined(CRYPTO_RAND_PRIVATE) */





More information about the tor-commits mailing list