From 89e0550e4dee7a5076f7b12d335468fd3bb4f26d Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 28 Feb 2016 02:48:47 +0100 Subject: Added one level of indirection to all variables in pre-hook functions - Previously, only scalar variables had their indirection level increased. Now pointers do as well (this allows users to override const pointers) Signed-off-by: Haru --- tools/HPMHookGen/HPMHookGen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl index c357d0dbd..577536313 100755 --- a/tools/HPMHookGen/HPMHookGen.pl +++ b/tools/HPMHookGen/HPMHookGen.pl @@ -187,7 +187,7 @@ sub parse($$) { $post_code = "va_end(${callvar});"; $var = ''; $variadic = 1; - } elsif (!$indirectionlvl) { # Increase indirection level when necessary + } else { # Increase indirection level when necessary $dereference = '*'; $addressof = '&'; } -- cgit v1.2.3-70-g09d2