From 0a34de46f1c65eae67ffda24018bdaaa638005dc Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Tue, 25 Feb 2014 12:20:39 +0100
Subject: [PATCH] Fixed function signature for random_func_wrapper.

This actually changes the calling conventions, and on stack
based machines it could make a significant difference if
size_t and unsigned int does not have the same bytesize.
---
 src/post_modules/Nettle/hogweed.cmod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/post_modules/Nettle/hogweed.cmod b/src/post_modules/Nettle/hogweed.cmod
index a16a59fec8..8d24089d21 100644
--- a/src/post_modules/Nettle/hogweed.cmod
+++ b/src/post_modules/Nettle/hogweed.cmod
@@ -26,7 +26,7 @@ DECLARATIONS
 /*! @module Nettle
  */
 
-void random_func_wrapper(void *f, size_t num, uint8_t *out)
+static void random_func_wrapper(void *f, unsigned int num, uint8_t *out)
 {
   push_int(num);
   apply_svalue((struct svalue *)f, 1);
-- 
GitLab