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:
@@ -75,7 +75,7 @@ mymain(void)
|
||||
/* Unset or set all envvars here that are copied in lxcdBuildCommandLine
|
||||
* using ADD_ENV_COPY, otherwise these tests may fail due to unexpected
|
||||
* values for these envvars */
|
||||
setenv("PATH", "/bin", 1);
|
||||
g_setenv("PATH", "/bin", TRUE);
|
||||
|
||||
DO_TEST("systemd");
|
||||
DO_TEST("hostdev");
|
||||
|
||||
Reference in New Issue
Block a user