From 149234217e3b0e1c786c7add63551b4fa80305a4 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 31 Aug 2006 01:26:26 -0500 Subject: [PATCH] _moo_env_add --- moo/mooutils/moospawn.c | 6 +++--- moo/mooutils/moospawn.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/moo/mooutils/moospawn.c b/moo/mooutils/moospawn.c index 93e65bce..1d44a463 100644 --- a/moo/mooutils/moospawn.c +++ b/moo/mooutils/moospawn.c @@ -433,8 +433,8 @@ real_child_setup (gpointer user_data) #endif -static char ** -make_env (char **add) +char ** +_moo_env_add (char **add) { GPtrArray *new_env; char **names, **p; @@ -509,7 +509,7 @@ moo_cmd_run_command (MooCmd *cmd, errp = &cmd->priv->err; } - new_env = make_env (envp); + new_env = _moo_env_add (envp); #if 0 && defined(__WIN32__) if (!(cmd_flags & MOO_CMD_OPEN_CONSOLE)) diff --git a/moo/mooutils/moospawn.h b/moo/mooutils/moospawn.h index 3695872f..91e0bdfe 100644 --- a/moo/mooutils/moospawn.h +++ b/moo/mooutils/moospawn.h @@ -65,10 +65,6 @@ struct _MooCmdClass GType _moo_cmd_get_type (void) G_GNUC_CONST; -gboolean _moo_unix_spawn_async (char **argv, - GSpawnFlags g_flags, - GError **error); - MooCmd *_moo_cmd_new (const char *working_dir, char **argv, char **envp, @@ -77,9 +73,13 @@ MooCmd *_moo_cmd_new (const char *working_dir, GSpawnChildSetupFunc child_setup, gpointer user_data, GError **error); - void _moo_cmd_abort (MooCmd *cmd); +gboolean _moo_unix_spawn_async (char **argv, + GSpawnFlags g_flags, + GError **error); +char **_moo_env_add (char **add); + G_END_DECLS