lxc_init_SOURCES = lxc_init.c
lxc_init_LDADD = liblxc.la
-lxc_create_SOURCES = lxc_create.c lxc_config.c lxc_config.h
+lxc_create_SOURCES = lxc_create.c confile.c confile.h
lxc_create_LDADD = liblxc.la
lxc_destroy_SOURCES = lxc_destroy.c
lxc_stop_SOURCES = lxc_stop.c
lxc_stop_LDADD = liblxc.la
-lxc_execute_SOURCES = lxc_execute.c lxc_config.c lxc_config.h
+lxc_execute_SOURCES = lxc_execute.c confile.c confile.h
lxc_execute_LDADD = liblxc.la
lxc_monitor_SOURCES = lxc_monitor.c
int i;
for (i = 0; i < config_size; i++)
- if (!strncmp(config[i].name, key,
+ if (!strncmp(config[i].name, key,
strlen(config[i].name)))
return &config[i];
return NULL;
lxc_log_syserror("failed to allocate memory");
return -1;
}
-
+
lxc_list_init(&network->netdev);
netdev = malloc(sizeof(*netdev));
list->elem = network;
lxc_list_add(networks, list);
-
+
if (!strcmp(value, "veth"))
network->type = VETH;
else if (!strcmp(value, "macvlan"))
if (strlen(subkey) == strlen(token))
return -1;
-
+
subkey += strlen(token);
cglist = malloc(sizeof(*cglist));
}
if (strlen(value) >= sizeof(utsname->nodename)) {
- lxc_log_error("node name '%s' is too long",
+ lxc_log_error("node name '%s' is too long",
utsname->nodename);
return -1;
}
lxc_log_error("invalid configuration line: %s", line);
return -1;
}
-
+
*dot = '\0';
value = dot + 1;