diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-13 00:54:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-13 00:54:32 +0000 |
commit | 18c32c9451b0a1b2bbb76cedc75b5a2dbc0eea93 (patch) | |
tree | 8c419d120487a86b89d78acf8258f3a3cfbb8fd8 /process.c | |
parent | 720dc304583d7d7fb27333494968cc4657a32e10 (diff) |
process.c: constified
* process.c (rb_exec_fillarg): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1850,7 +1850,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str #ifndef _WIN32 if (e->use_shell) { - char *p; + const char *p; int has_meta = 0; int has_nonspace = 0; /* @@ -1897,7 +1897,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str while (*p == ' ' || *p == '\t') p++; if (*p) { - char *w = p; + const char *w = p; while (*p && *p != ' ' && *p != '\t') p++; rb_str_buf_cat(argv_buf, w, p-w); @@ -1911,7 +1911,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str #endif if (!e->use_shell) { - char *abspath; + const char *abspath; abspath = dln_find_exe_r(RSTRING_PTR(e->invoke.cmd.command_name), 0, fbuf, sizeof(fbuf)); if (abspath) e->invoke.cmd.command_abspath = rb_str_new_cstr(abspath); @@ -1932,7 +1932,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str } if (!e->use_shell) { - char *p, *ep, *null=NULL; + const char *p, *ep, *null=NULL; VALUE argv_str; argv_str = hide_obj(rb_str_buf_new(sizeof(char*) * (argc + 2))); rb_str_buf_cat(argv_str, (char *)&null, sizeof(null)); /* place holder for /bin/sh of try_with_sh. */ |