mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
src: switch to use g_setenv/g_unsetenv
Eliminate direct use of normal setenv/unsetenv calls in favour of GLib's wrapper. This eliminates two gnulib modules Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -260,10 +260,10 @@ qemuTestSetHostCPU(virQEMUDriverPtr driver,
|
||||
cpu = cpuPower8;
|
||||
}
|
||||
|
||||
unsetenv("VIR_TEST_MOCK_FAKE_HOST_CPU");
|
||||
g_unsetenv("VIR_TEST_MOCK_FAKE_HOST_CPU");
|
||||
if (cpu) {
|
||||
if (cpu->model)
|
||||
setenv("VIR_TEST_MOCK_FAKE_HOST_CPU", cpu->model, 1);
|
||||
g_setenv("VIR_TEST_MOCK_FAKE_HOST_CPU", cpu->model, TRUE);
|
||||
}
|
||||
if (driver) {
|
||||
if (cpu)
|
||||
|
||||
Reference in New Issue
Block a user