plaisthos has uploaded this change for review. ( 
http://gerrit.openvpn.net/c/openvpn/+/1839?usp=email )


Change subject: Make test_misc compile with -Werror again.
......................................................................

Make test_misc compile with -Werror again.

Commit 5978a46e3 (master)/3402f9aa0 (release/2.7) removed the
local prototype/function get_random in test_misc and use the
global prototype in crypto.h.

This made get_random return uint64_t instead of uint32_t.
Adjust the calls in test_list accordingly.

On master the general hash rewrite/cleanup completely
removes the iv argument from hash_init and therefore
only 2.7 requires this patch.

Change-Id: I1a6a0ca8beba3214b21047755246ceeb30141c2a
---
M tests/unit_tests/openvpn/test_misc.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/39/1839/1

diff --git a/tests/unit_tests/openvpn/test_misc.c 
b/tests/unit_tests/openvpn/test_misc.c
index b9e2db0..a9c3845 100644
--- a/tests/unit_tests/openvpn/test_misc.c
+++ b/tests/unit_tests/openvpn/test_misc.c
@@ -170,8 +170,8 @@
      */

     struct gc_arena gc = gc_new();
-    struct hash *hash = hash_init(10000, get_random(), word_hash_function, 
word_compare_function);
-    struct hash *nhash = hash_init(256, get_random(), word_hash_function, 
word_compare_function);
+    struct hash *hash = hash_init(10000, (uint32_t)get_random(), 
word_hash_function, word_compare_function);
+    struct hash *nhash = hash_init(256, (uint32_t)get_random(), 
word_hash_function, word_compare_function);

     printf("hash_init n_buckets=%u mask=0x%08x\n", hash->n_buckets, 
hash->mask);


--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1839?usp=email
To unsubscribe, or for help writing mail filters, visit 
http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: release/2.7
Gerrit-Change-Id: I1a6a0ca8beba3214b21047755246ceeb30141c2a
Gerrit-Change-Number: 1839
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to