From ada3bd1ac10f5babaf74322c9536b8ea0fc3ff79 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 23 Sep 1996 16:57:19 +0000 Subject: (main): Use new PARAMS var for passing args to STORE_ARGP. --- libstore/storecat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libstore/storecat.c') 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); -- cgit v1.2.3