Searched defs:alloced (Results 1 - 1 of 1) sorted by relevance

/lxc/src/tests/
H A Dget_item.c107 char *alloced; local
122 alloced = malloc(len+1);
123 if (!alloced) {
129 ret = c->get_config_item(c, "lxc.utsname", alloced, len+1);
134 if (strcmp(alloced, HNAME) != 0 || ret != len) {
135 fprintf(stderr, "lxc.utsname returned wrong value: %d %s not %d %s\n", ret, alloced, len, HNAME);
138 printf("lxc.utsname returned %d %s\n", len, alloced);
139 free(alloced);

Completed in 9 milliseconds