summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/ps.c6
-rw-r--r--utils/settrans.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/utils/ps.c b/utils/ps.c
index 8a195287..6463218c 100644
--- a/utils/ps.c
+++ b/utils/ps.c
@@ -491,9 +491,9 @@ main(int argc, char *argv[])
{
size_t len = strlen (arg) + 1;
arg_hack_buf = realloc (arg_hack_buf, 1 + len);
- state->argv[--state->index] = arg_hack_buf;
- state->argv[state->index][0] = '-';
- memcpy (&state->argv[state->index][1], arg, len);
+ state->argv[--state->next] = arg_hack_buf;
+ state->argv[state->next][0] = '-';
+ memcpy (&state->argv[state->next][1], arg, len);
break;
}
/* Otherwise, fall through and treat the arg as a process id. */
diff --git a/utils/settrans.c b/utils/settrans.c
index a235a426..ced090f2 100644
--- a/utils/settrans.c
+++ b/utils/settrans.c
@@ -82,10 +82,10 @@ main(int argc, char *argv[])
{
case ARGP_KEY_ARG:
node_name = arg;
- err = argz_create (state->argv + state->index, &argz, &argz_len);
+ err = argz_create (state->argv + state->next, &argz, &argz_len);
if (err)
error(3, err, "Can't create options vector");
- state->index = state->argc; /* stop parsing */
+ state->next = state->argc; /* stop parsing */
break;
case ARGP_KEY_NO_ARGS: