1
0
Fork 0
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:
Sonja Kolen 2018-08-22 16:43:22 +02:00
parent 6cc4f6b8ea
commit 1b437d2f12

View file

@ -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;
}