Changeset 1f6228e889ec2f4904a05bb4cb83ff315fb4499e

Show
Ignore:
Timestamp:
12/20/11 04:59:49 (2 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1324357189 +0000
git-parent:

[278ca955d564824e83664c1eebbfbb36c0ef1b0c]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1324357189 +0000
Message:

fix hooks to respect aliasing requirements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_hooks.h

    r4240c10 r1f6228e  
    146146  struct noit_hook_##HOOKNAME##_list *next; \ 
    147147}; \ 
    148 static volatile struct noit_hook_##HOOKNAME##_list *nh_##HOOKNAME##_list = NULL; \ 
     148static volatile void *nh_##HOOKNAME##_list = NULL; \ 
    149149 \ 
    150150noit_hook_return_t \ 
     
    152152  noit_hook_return_t rv = NOIT_HOOK_CONTINUE; \ 
    153153  struct noit_hook_##HOOKNAME##_list *h; \ 
    154   for(h = (struct noit_hook_##HOOKNAME##_list *)nh_##HOOKNAME##_list;
    155       h; \ 
    156       h = h->next) { \ 
     154  struct noit_hook_##HOOKNAME##_list *list =
     155    (struct noit_hook_##HOOKNAME##_list *)nh_##HOOKNAME##_list; \ 
     156  for(h = list; h; h = h->next) { \ 
    157157    if(h->func) { \ 
    158158      noit_hook_return_t trv; \