projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eeda1f8
)
Corrected typo (tree instead of hooks)
author
Ivo Timmermans
<ivo@lychnis.net>
Tue, 16 Apr 2002 21:47:18 +0000
(21:47 +0000)
committer
Ivo Timmermans
<ivo@lychnis.net>
Tue, 16 Apr 2002 21:47:18 +0000
(21:47 +0000)
lib/hooks.c
patch
|
blob
|
history
diff --git
a/lib/hooks.c
b/lib/hooks.c
index
ec52812
..
2ecdd1e
100644
(file)
--- a/
lib/hooks.c
+++ b/
lib/hooks.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: hooks.c,v 1.1.2.
3 2002/04/16 21:24:55
zarq Exp $
+ $Id: hooks.c,v 1.1.2.
4 2002/04/16 21:47:18
zarq Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-68,7
+68,7
@@
void run_hooks(const char *type, ...)
if(!hooks_tree)
return;
hn = (struct hooks_node*)avl_search(hooks_tree, type);
if(!hooks_tree)
return;
hn = (struct hooks_node*)avl_search(hooks_tree, type);
- if(!hn)
+ if(!hn
|| !(hn->hooks->head)
)
{
fprintf(stderr, "Warning, no hooks found for `%s'\n", type);
return;
{
fprintf(stderr, "Warning, no hooks found for `%s'\n", type);
return;