gsubprocesslauncher: Use "env" instead of "environ"
authorMorten Welinder <terra@gnome.org>
Thu, 26 Dec 2013 12:37:17 +0000 (07:37 -0500)
committerColin Walters <walters@verbum.org>
Thu, 26 Dec 2013 12:37:17 +0000 (07:37 -0500)
The latter may come from system headers.

https://bugzilla.gnome.org/show_bug.cgi?id=721059

gio/gsubprocesslauncher.c
gio/gsubprocesslauncher.h

index 3b15300..7b1ca48 100644 (file)
@@ -224,7 +224,7 @@ g_subprocess_launcher_new (GSubprocessFlags flags)
 /**
  * g_subprocess_launcher_set_environ:
  * @self: a #GSubprocess
- * @environ: the replacement environment
+ * @env: the replacement environment
  *
  * Replace the entire environment of processes launched from this
  * launcher with the given 'environ' variable.
@@ -244,10 +244,10 @@ g_subprocess_launcher_new (GSubprocessFlags flags)
  **/
 void
 g_subprocess_launcher_set_environ (GSubprocessLauncher  *self,
-                                   gchar               **environ)
+                                   gchar               **env)
 {
   g_strfreev (self->envp);
-  self->envp = g_strdupv (environ);
+  self->envp = g_strdupv (env);
 }
 
 /**
index 3187690..611730e 100644 (file)
@@ -56,7 +56,7 @@ GSubprocess *           g_subprocess_launcher_spawnv                    (GSubpro
 
 GLIB_AVAILABLE_IN_2_40
 void                    g_subprocess_launcher_set_environ               (GSubprocessLauncher   *self,
-                                                                         gchar                **environ);
+                                                                         gchar                **env);
 
 GLIB_AVAILABLE_IN_2_40
 void                    g_subprocess_launcher_setenv                    (GSubprocessLauncher   *self,