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:
Daniel P. Berrangé
2019-12-18 17:16:19 +00:00
parent 4eed65abec
commit 2c33532423
28 changed files with 87 additions and 87 deletions

View File

@@ -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");