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:
parent
f72d0b6b57
commit
6cc4f6b8ea
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue