mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
smaller cleanups
This commit is contained in:
parent
c5487663cc
commit
ef2bcda344
1 changed files with 3 additions and 4 deletions
|
@ -32,7 +32,7 @@ static void path_write(struct path *p)
|
|||
n->combine /* Number of messages which should be sent */
|
||||
);
|
||||
|
||||
debug(15, "Sent %u messages to node '%s'", sent, n->name);
|
||||
debug(15, "Sent %u messages to node '%s'", sent, n->name);
|
||||
p->sent += sent;
|
||||
|
||||
p->ts_sent = time_now(); /** @todo use hardware timestamps for socket node type */
|
||||
|
@ -140,10 +140,9 @@ int path_start(struct path *p)
|
|||
free(buf);
|
||||
|
||||
/* We sort the hooks according to their priority before starting the path */
|
||||
int hook_cmp(const void *a, const void *b) {
|
||||
list_sort(&p->hooks, ({int cmp(const void *a, const void *b) {
|
||||
return ((struct hook *) a)->priority - ((struct hook *) b)->priority;
|
||||
}
|
||||
list_sort(&p->hooks, hook_cmp);
|
||||
}; &cmp; }));
|
||||
|
||||
if (path_run_hook(p, HOOK_PATH_START))
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue