aboutsummaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-03-29 22:12:33 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-31 08:07:47 -0300
commit206a38871f8249da308191f5d84b17a97e64b92e (patch)
treebe2e5b01d2787749cbdc5b15dba7f92ab590e427 /src/misc2.c
parent0d61b1c470466118c601a107d7a17b9edd107c53 (diff)
downloadrneovim-206a38871f8249da308191f5d84b17a97e64b92e.tar.gz
rneovim-206a38871f8249da308191f5d84b17a97e64b92e.tar.bz2
rneovim-206a38871f8249da308191f5d84b17a97e64b92e.zip
Update `call_shell` signature to use `ShellOpts`
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc2.c b/src/misc2.c
index f2269e7aae..703ec6d304 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1531,7 +1531,7 @@ int default_fileformat(void)
/*
* Call shell. Calls mch_call_shell, with 'shellxquote' added.
*/
-int call_shell(char_u *cmd, int opt, char_u *extra_shell_arg)
+int call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg)
{
char_u *ncmd;
int retval;
@@ -1557,7 +1557,7 @@ int call_shell(char_u *cmd, int opt, char_u *extra_shell_arg)
tag_freematch();
if (cmd == NULL || *p_sxq == NUL)
- retval = mch_call_shell(cmd, opt, extra_shell_arg);
+ retval = mch_call_shell(cmd, opts, extra_shell_arg);
else {
char_u *ecmd = cmd;
@@ -1575,7 +1575,7 @@ int call_shell(char_u *cmd, int opt, char_u *extra_shell_arg)
STRCAT(ncmd, STRCMP(p_sxq, "(") == 0 ? (char_u *)")"
: STRCMP(p_sxq, "\"(") == 0 ? (char_u *)")\""
: p_sxq);
- retval = mch_call_shell(ncmd, opt, extra_shell_arg);
+ retval = mch_call_shell(ncmd, opts, extra_shell_arg);
vim_free(ncmd);
} else
retval = -1;