/* Set os.bootloader since virDomainDefFormatInternal will only format
* the bootloader arguments if os->bootloader is set. */
def->os.bootloader = g_strdup(argv[0]);
- def->os.bootloaderArgs = virStringListJoin((const char**) &argv[1], " ");
+ def->os.bootloaderArgs = g_strjoinv(" ", &argv[1]);
}
if (def->name == NULL) {
return -1;
def->os.bootloader = g_strdup(argv[0]);
- def->os.bootloaderArgs = virStringListJoin((const char**) &argv[1], " ");
+ def->os.bootloaderArgs = g_strjoinv(" ", &argv[1]);
return 0;
}
if (!address_array[i])
goto cleanup;
}
- ret = virStringListJoin((const char**)address_array, " ");
+ ret = g_strjoinv(" ", address_array);
cleanup:
g_strfreev(address_array);
cpuid_pairs[j] = NULL;
if (j > 1) {
- cpuid_string = virStringListJoin((const char **)cpuid_pairs, ",");
- if (!cpuid_string)
- goto cleanup;
+ cpuid_string = g_strjoinv(",", cpuid_pairs);
if (xenConfigSetString(conf, "cpuid", cpuid_string) < 0)
goto cleanup;
if (n > 0) {
g_autofree char *str = NULL;
- str = virStringListJoin((const char **)features, ", ");
+ str = g_strjoinv(", ", features);
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("Some features cannot be reliably used "
"with this QEMU: %s"), str);
parts = g_strsplit(hostport, "\\:", 0);
if (!parts)
goto error;
- src->hosts[src->nhosts-1].name = virStringListJoin((const char **)parts, ":");
- if (!src->hosts[src->nhosts-1].name)
- goto error;
+ src->hosts[src->nhosts-1].name = g_strjoinv(":", parts);
src->hosts[src->nhosts-1].transport = VIR_STORAGE_NET_HOST_TRANS_TCP;
src->hosts[src->nhosts-1].socket = NULL;
goto cleanup;
}
- if (!(*res = virStringListJoin((const char **)tokens, "/")))
+ if (!(*res = g_strjoinv("/", tokens)))
goto cleanup;
ret = 0;