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

Moved call to memory_init() from api to super_node

Fixes #180.
This commit is contained in:
Dennis Potter 2018-07-24 10:40:21 +02:00
parent eb80945699
commit f14ae5a9ef
2 changed files with 1 additions and 1 deletions

View file

@ -272,7 +272,6 @@ int api_init(struct api *a, struct super_node *sn)
if (ret)
return ret;
memory_init(0);
ret = queue_signalled_init(&a->pending, 1024, &memory_type_heap, 0);
if (ret)
return ret;

View file

@ -49,6 +49,7 @@ int super_node_init(struct super_node *sn)
log_init(&sn->log, V, LOG_ALL);
#ifdef WITH_API
memory_init(0);
api_init(&sn->api, sn);
#endif /* WITH_API */
#ifdef WITH_WEB