char *path;
virSecretObjPtr obj;
- if (!virStringHasCaseSuffix(de->d_name, ".xml"))
+ if (!virStringHasSuffix(de->d_name, ".xml"))
continue;
if (!(path = virFileBuildPath(configDir, de->d_name, NULL)))
char *autostartLink;
virStoragePoolObjPtr obj;
- if (!virStringHasCaseSuffix(entry->d_name, ".xml"))
+ if (!virStringHasSuffix(entry->d_name, ".xml"))
continue;
if (!(path = virFileBuildPath(configDir, entry->d_name, NULL)))
if (virVMXGetConfigString(conf, "guestOS", &guestOS, true) < 0)
goto cleanup;
- if (guestOS != NULL && virStringHasCaseSuffix(guestOS, "-64")) {
+ if (guestOS != NULL && virStringHasSuffix(guestOS, "-64")) {
def->os.arch = VIR_ARCH_X86_64;
} else {
def->os.arch = VIR_ARCH_I686;
char *script = NULL;
virCommandPtr cmd = NULL;
- if (!(virStringHasCaseSuffix(filename, ".args") ||
- virStringHasCaseSuffix(filename, ".ldargs")))
+ if (!(virStringHasSuffix(filename, ".args") ||
+ virStringHasSuffix(filename, ".ldargs")))
return 0;
if (!perl) {
testSchemaFile(const void *args)
{
const struct testSchemaData *data = args;
- bool shouldFail = virStringHasCaseSuffix(data->xml_path, "-invalid.xml");
+ bool shouldFail = virStringHasSuffix(data->xml_path, "-invalid.xml");
xmlDocPtr xml = NULL;
int ret = -1;
return -1;
while ((rc = virDirRead(dir, &ent, dir_path)) > 0) {
- if (!virStringHasCaseSuffix(ent->d_name, ".xml"))
+ if (!virStringHasSuffix(ent->d_name, ".xml"))
continue;
if (ent->d_name[0] == '.')
continue;
while ((ret = virDirRead(dir, &entry, leaseDir)) > 0) {
char *path;
- if (virStringHasCaseSuffix(entry->d_name, ".status")) {
+ if (virStringHasSuffix(entry->d_name, ".status")) {
if (!(path = virFileBuildPath(leaseDir, entry->d_name, NULL)))
goto cleanup;
goto cleanup;
}
VIR_FREE(path);
- } else if (virStringHasCaseSuffix(entry->d_name, ".macs")) {
+ } else if (virStringHasSuffix(entry->d_name, ".macs")) {
if (!(path = virFileBuildPath(leaseDir, entry->d_name, NULL)))
goto cleanup;