mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
super_node: use hook_periodic in define pragma to enable built without hooks
This commit is contained in:
parent
6cc4f6b8ea
commit
1b437d2f12
1 changed files with 2 additions and 1 deletions
|
@ -494,6 +494,7 @@ int super_node_destroy(struct super_node *sn)
|
|||
|
||||
int super_node_periodic(struct super_node *sn)
|
||||
{
|
||||
#ifdef WITH_HOOKS
|
||||
int ret;
|
||||
|
||||
for (size_t i = 0; i < list_length(&sn->paths); i++) {
|
||||
|
@ -533,6 +534,6 @@ int super_node_periodic(struct super_node *sn)
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue