mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
default node type is now "udp"
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@266 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
parent
0ec97c2fed
commit
b7fcd2cc43
1 changed files with 7 additions and 6 deletions
|
@ -180,12 +180,13 @@ int config_parse_node(config_setting_t *cfg, struct node **nodes)
|
|||
if (!n->name)
|
||||
cerror(cfg, "Missing node name");
|
||||
|
||||
if (!config_setting_lookup_string(cfg, "type", &type))
|
||||
cerror(cfg, "Missing node type");
|
||||
|
||||
n->vt = node_lookup_vtable(type);
|
||||
if (!n->vt)
|
||||
cerror(cfg, "Invalid type for node '%s'", n->name);
|
||||
if (config_setting_lookup_string(cfg, "type", &type)) {
|
||||
n->vt = node_lookup_vtable(type);
|
||||
if (!n->vt)
|
||||
cerror(cfg, "Invalid type for node '%s'", n->name);
|
||||
}
|
||||
else
|
||||
n->vt = node_lookup_vtable("udp");
|
||||
|
||||
ret = n->vt->parse(cfg, n);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue