diff --git a/include/villas/node.h b/include/villas/node.h index 2c65558d9..da40ff188 100644 --- a/include/villas/node.h +++ b/include/villas/node.h @@ -161,11 +161,6 @@ int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *re int node_fd(struct node *n); struct node_type * node_type(struct node *n); -{ - assert(n->type == STATE_INITIALIZED); - - return n->_vt; -} struct memory_type * node_memory_type(struct node *n, struct memory_type *parent); diff --git a/lib/node.c b/lib/node.c index 80df9502c..460a966be 100644 --- a/lib/node.c +++ b/lib/node.c @@ -554,6 +554,13 @@ int node_fd(struct node *n) return node_type(n)->fd ? node_type(n)->fd(n) : -1; } +struct node_type * node_type(struct node *n) +{ + assert(n->state == STATE_INITIALIZED); + + return n->_vt; +} + struct memory_type * node_memory_type(struct node *n, struct memory_type *parent) { return node_type(n)->memory_type ? node_type(n)->memory_type(n, parent) : &memory_hugepage;