From de9f89fb684c7fea52a6c162301986b02ea92721 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 4 Sep 1996 19:37:42 +0000 Subject: (main): Use new interface to store_argp. --- libstore/storecat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libstore/storecat.c b/libstore/storecat.c index f1374390..895b44e8 100644 --- a/libstore/storecat.c +++ b/libstore/storecat.c @@ -13,10 +13,12 @@ main (int argc, char **argv) struct store *s; char buf[4096], *data = buf; size_t data_len = sizeof (buf); - struct store_argp_params params = { 0, 0, 0 }; + struct store_parsed *parsed; - argp_parse (&store_argp, argc, argv, 0, 0, ¶ms); - s = params.result; + argp_parse (&store_argp, argc, argv, 0, 0, &parsed); + err = store_parsed_open (parsed, STORE_READONLY, 0, &s); + if (err) + error (4, err, "store_parsed_open"); err = store_read (s, 0, s->size, &data, &data_len); if (err) -- cgit v1.2.3