diff options
author | Miles Bader <miles@gnu.org> | 1995-12-06 20:34:56 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-12-06 20:34:56 +0000 |
commit | e6a6d4d6481b317c014953f9b94c3b8a9ae5b9a8 (patch) | |
tree | 3c3b5922f51567ef8db3b75a067b4dde09155574 /utils/ps.c | |
parent | ff638986da5a5e6890a346da7a63901b84401b51 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. */ |