(RUN_HOOK): Dereference PTR before casting to function pointer type, on
authorroland <roland>
Mon, 30 Jan 1995 07:44:27 +0000 (07:44 +0000)
committerroland <roland>
Mon, 30 Jan 1995 07:44:27 +0000 (07:44 +0000)
which dereference is a no-op.

set-hooks.h

index 913a8de..30252f2 100644 (file)
@@ -43,7 +43,7 @@ do {                                                                        \
   void *const *ptr;                                                          \
   for (ptr = symbol_set_first_element (NAME);                                \
        ! symbol_set_end_p (NAME, ptr); ++ptr)                                \
-    (*(__##NAME##_hook_function_t *) ptr) ARGS;                                      \
+    ((__##NAME##_hook_function_t *) *ptr) ARGS;                                      \
 } while (0)
 
 /* Define a hook variable with NAME and PROTO, and a function called RUNNER