Kaynağa Gözat

Retab the ifdefs because I can't read them otherwise

Caleb James DeLisle 3 yıl önce
ebeveyn
işleme
127c7579b1
1 değiştirilmiş dosya ile 19 ekleme ve 19 silme
  1. 19 19
      crypto/random/seed/SystemRandomSeed.c

+ 19 - 19
crypto/random/seed/SystemRandomSeed.c

@@ -26,25 +26,25 @@
 #else
     #include "crypto/random/seed/DevUrandomRandomSeed.h"
     RandomSeedProvider_register(DevUrandomRandomSeed_new)
-#ifdef linux
-    #include "crypto/random/seed/ProcSysKernelRandomUuidRandomSeed.h"
-    RandomSeedProvider_register(ProcSysKernelRandomUuidRandomSeed_new)
-#if !defined(__ILP32__) && !defined(__aarch64__) && defined(__GLIBC__)
-    #include "crypto/random/seed/LinuxRandomUuidSysctlRandomSeed.h"
-    RandomSeedProvider_register(LinuxRandomUuidSysctlRandomSeed_new)
-#endif
-#else
-#ifdef freebsd
-    #include "crypto/random/seed/BsdKernArndSysctlRandomSeed.h"
-    RandomSeedProvider_register(BsdKernArndSysctlRandomSeed_new)
-#endif
-#endif
-#include <sys/syscall.h>
-#if defined(__OPENBSD__) || (defined(SYS_getrandom) && \
-    (SYS_getrandom != __NR_getrandom || defined(__NR_getrandom)))
-    #include "crypto/random/seed/GetEntropyRandomSeed.h"
-    RandomSeedProvider_register(GetEntropyRandomSeed_new)
-#endif
+    #ifdef linux
+        #include "crypto/random/seed/ProcSysKernelRandomUuidRandomSeed.h"
+        RandomSeedProvider_register(ProcSysKernelRandomUuidRandomSeed_new)
+        #if !defined(__ILP32__) && !defined(__aarch64__) && defined(__GLIBC__)
+            #include "crypto/random/seed/LinuxRandomUuidSysctlRandomSeed.h"
+            RandomSeedProvider_register(LinuxRandomUuidSysctlRandomSeed_new)
+        #endif
+    #else
+        #ifdef freebsd
+            #include "crypto/random/seed/BsdKernArndSysctlRandomSeed.h"
+            RandomSeedProvider_register(BsdKernArndSysctlRandomSeed_new)
+        #endif
+    #endif
+    #include <sys/syscall.h>
+    #if defined(__OPENBSD__) || (defined(SYS_getrandom) && \
+        (SYS_getrandom != __NR_getrandom || defined(__NR_getrandom)))
+        #include "crypto/random/seed/GetEntropyRandomSeed.h"
+        RandomSeedProvider_register(GetEntropyRandomSeed_new)
+    #endif
 #endif
 
 static RandomSeed_Provider PROVIDERS[] = { RandomSeedProvider_list() };