summaryrefslogtreecommitdiff
path: root/libstore/storecat.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-09-04 19:37:42 +0000
committerMiles Bader <miles@gnu.org>1996-09-04 19:37:42 +0000
commitde9f89fb684c7fea52a6c162301986b02ea92721 (patch)
treef3c795418b9d595ec1a91a4416515e3452766f26 /libstore/storecat.c
parent683dc1bed3c470fcbfeef2cba38d496441ad9803 (diff)
(main): Use new interface to store_argp.
Diffstat (limited to 'libstore/storecat.c')
-rw-r--r--libstore/storecat.c8
1 files 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, &params);
- 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)