summaryrefslogtreecommitdiff
path: root/src/comm/Reduction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/comm/Reduction.c')
-rw-r--r--src/comm/Reduction.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/comm/Reduction.c b/src/comm/Reduction.c
index ac59c265..ce29f62f 100644
--- a/src/comm/Reduction.c
+++ b/src/comm/Reduction.c
@@ -228,12 +228,13 @@ int CCTKi_RegisterReductionOperator(const char *thorn,
const char *name)
{
int handle;
+ void *tmp;
t_reduce_operator *reduce_operator;
/* Check that the method hasn't already been registered */
- handle = Util_GetHandle(ReductionOperators, name,
- (void **) &reduce_operator);
+ handle = Util_GetHandle(ReductionOperators, name, &tmp);
+ reduce_operator = tmp;
if(handle < 0)
{
reduce_operator = malloc (sizeof (t_reduce_operator));