From e6a6d4d6481b317c014953f9b94c3b8a9ae5b9a8 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 6 Dec 1995 20:34:56 +0000 Subject: (main): Change uses of the INDEX field in argp_state structures to use NEXT instead. --- utils/ps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/ps.c') 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. */ -- cgit v1.2.3