Explorar el Código

Revert "Silence clang warnings"

This reverts commit 83ee695dc38faddab523612c8c9cc0659991b47a.
Bryan Drewery hace 13 años
padre
commit
b0c064f4fe
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/enclink.c

+ 4 - 4
src/enclink.c

@@ -124,10 +124,10 @@ static void
 rotate_key(char* key, int& seed)
 {
   if (seed) {
-    *(uint32_t *) (&key + 0)  = prand(&seed, 0xFFFFFFFF);
-    *(uint32_t *) (&key + 4)  = prand(&seed, 0xFFFFFFFF);
-    *(uint32_t *) (&key + 8)  = prand(&seed, 0xFFFFFFFF);
-    *(uint32_t *) (&key + 12) = prand(&seed, 0xFFFFFFFF);
+    *(uint32_t *) & key[0] = prand(&seed, 0xFFFFFFFF);
+    *(uint32_t *) & key[4] = prand(&seed, 0xFFFFFFFF);
+    *(uint32_t *) & key[8] = prand(&seed, 0xFFFFFFFF);
+    *(uint32_t *) & key[12] = prand(&seed, 0xFFFFFFFF);
 
     if (!seed)
       seed++;