1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

node: fixed unused variable to build with disabled hooks

This commit is contained in:
Sonja Kolen 2018-08-22 16:41:26 +02:00
parent f72d0b6b57
commit 6cc4f6b8ea

View file

@ -71,7 +71,7 @@ static int node_direction_init(struct node_direction *nd, struct node *n)
static int node_direction_destroy(struct node_direction *nd, struct node *n)
{
int ret;
int ret = 0;
#ifdef WITH_HOOKS
ret = list_destroy(&nd->hooks, (dtor_cb_t) hook_destroy, true);
@ -79,7 +79,7 @@ static int node_direction_destroy(struct node_direction *nd, struct node *n)
return ret;
#endif
return 0;
return ret;
}
static int node_direction_parse(struct node_direction *nd, struct node *n, json_t *cfg)