/[svn]/ircd-hybrid-7.2/src/hook.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/hook.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 157 by adx, Tue Oct 18 06:33:24 2005 UTC revision 713 by michael, Wed Jul 12 12:37:35 2006 UTC
# Line 63  register_callback(const char *name, CBFU Line 63  register_callback(const char *name, CBFU
63      if ((cb = find_callback(name)) != NULL)      if ((cb = find_callback(name)) != NULL)
64      {      {
65        if (func != NULL)        if (func != NULL)
66          dlinkAdd(func, MyMalloc(sizeof(dlink_node)), &cb->chain);          dlinkAddTail(func, MyMalloc(sizeof(dlink_node)), &cb->chain);
67        return (NULL);        return (cb);
68      }      }
69    
70    cb = MyMalloc(sizeof(struct Callback));    cb = MyMalloc(sizeof(struct Callback));

Legend:
Removed from v.157  
changed lines
  Added in v.713

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28