summaryrefslogtreecommitdiff
path: root/utils/ps.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-12-06 20:34:56 +0000
committerMiles Bader <miles@gnu.org>1995-12-06 20:34:56 +0000
commite6a6d4d6481b317c014953f9b94c3b8a9ae5b9a8 (patch)
tree3c3b5922f51567ef8db3b75a067b4dde09155574 /utils/ps.c
parentff638986da5a5e6890a346da7a63901b84401b51 (diff)
(main):
Change uses of the INDEX field in argp_state structures to use NEXT instead.
Diffstat (limited to 'utils/ps.c')
-rw-r--r--utils/ps.c6
1 files changed, 3 insertions, 3 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. */