Browse Source

Revert "Silence clang warnings"

This reverts commit 83ee695dc38faddab523612c8c9cc0659991b47a.
Bryan Drewery 13 years ago
parent
commit
b0c064f4fe
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/enclink.c

+ 4 - 4
src/enclink.c

@@ -124,10 +124,10 @@ static void
 rotate_key(char* key, int& seed)
 rotate_key(char* key, int& seed)
 {
 {
   if (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)
     if (!seed)
       seed++;
       seed++;