From 1ce6f065b519284a5ad7135a6db77fcbe1aa778a Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 10 Oct 2000 07:03:36 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index c052bb1de8..a99e902b59 100644 --- a/process.c +++ b/process.c @@ -281,7 +281,7 @@ proc_exec_v(argv, prog) for (n = 0; argv[n]; n++) /* no-op */; - new_argv = ALLOCA_N(char *, n + 2); + new_argv = ALLOCA_N(char*, n + 2); for (; n > 0; n--) new_argv[n + 1] = argv[n]; new_argv[1] = strcpy(ALLOCA_N(char, strlen(argv[0]) + 1), argv[0]); @@ -409,7 +409,7 @@ proc_spawn_v(argv, prog) for (n = 0; argv[n]; n++) /* no-op */; - new_argv = ALLOCA_N(char *, n + 2); + new_argv = ALLOCA_N(char*, n + 2); for (; n > 0; n--) new_argv[n + 1] = argv[n]; new_argv[1] = strcpy(ALLOCA_N(char, strlen(argv[0]) + 1), argv[0]); @@ -439,13 +439,13 @@ proc_spawn_n(argc, argv, prog) char **args; int i; - args = ALLOCA_N(char *, argc + 1); + args = ALLOCA_N(char*, argc + 1); for (i = 0; i < argc; i++) { Check_SafeStr(argv[i]); args[i] = RSTRING(argv[i])->ptr; } Check_SafeStr(prog); - args[i] = (char *) 0; + args[i] = (char*) 0; if (args[0]) return proc_spawn_v(args, RSTRING(prog)->ptr); return -1; @@ -471,7 +471,7 @@ proc_spawn(sv) return state; } } - a = argv = ALLOCA_N(char *, (s - str) / 2 + 2); + a = argv = ALLOCA_N(char*, (s - str) / 2 + 2); s = ALLOCA_N(char, s - str + 1); strcpy(s, str); if (*a++ = strtok(s, " \t")) { -- cgit v1.2.3