diff options
author | Miles Bader <miles@gnu.org> | 1996-09-23 16:57:19 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-09-23 16:57:19 +0000 |
commit | ada3bd1ac10f5babaf74322c9536b8ea0fc3ff79 (patch) | |
tree | 333f38f4a6357b7d92e14a98a75f7704915492f2 /libstore | |
parent | b446bb1c7d531913e276e5522cdd45a145e140bf (diff) |
(main):
Use new PARAMS var for passing args to STORE_ARGP.
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/storecat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libstore/storecat.c b/libstore/storecat.c index 99a29063..bff42c86 100644 --- a/libstore/storecat.c +++ b/libstore/storecat.c @@ -12,19 +12,19 @@ main (int argc, char **argv) error_t err; struct store *s; char *name; - struct store_parsed *parsed; off_t addr; size_t left; const struct argp *parents[] = { &store_argp, 0 }; struct argp argp = { 0, 0, 0, "Write the contents of a store to stdout", parents }; + store_argp_params p = { 0 }; - argp_parse (&argp, argc, argv, 0, 0, &parsed); - err = store_parsed_name (parsed, &name); + argp_parse (&argp, argc, argv, 0, 0, &p); + err = store_parsed_name (p.result, &name); if (err) error (2, err, "store_parsed_name"); - err = store_parsed_open (parsed, STORE_READONLY, 0, &s); + err = store_parsed_open (p.result, STORE_READONLY, 0, &s); if (err) error (4, err, "%s", name); |