diff options
author | Miles Bader <miles@gnu.org> | 1995-12-06 20:33:04 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-12-06 20:33:04 +0000 |
commit | d9d186142b4329ac40dc271107f82bb823b378c5 (patch) | |
tree | 29d4cf76e2cdc3ab4a483901f576217975e9ccd7 /utils | |
parent | 3d77c9057d49a890b158a0c4fe6255738b02e6b5 (diff) |
(main):
Supply the new SEP argument to argz_stringify.
Change uses of the INDEX field in argp_state structures to use NEXT instead.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fsysopts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/fsysopts.c b/utils/fsysopts.c index 9d6aa8a1..ef9cbe30 100644 --- a/utils/fsysopts.c +++ b/utils/fsysopts.c @@ -67,10 +67,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 'R': recursive = 1; break; @@ -102,7 +102,7 @@ main(int argc, char *argv[]) err = fsys_set_options (fsys, argz, argz_len, recursive); if (err) { - argz_stringify (argz, argz_len); + argz_stringify (argz, argz_len, ' '); error(5, err, "%s: %s", node_name, argz); } } @@ -111,7 +111,7 @@ main(int argc, char *argv[]) err = file_get_fs_options (node, &argz, &argz_len); if (err) error (5, err, "%s", node_name); - argz_stringify (argz, argz_len); + argz_stringify (argz, argz_len, ' '); puts (argz); } |