aboutsummaryrefslogtreecommitdiff
path: root/libstore/storecat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstore/storecat.c')
-rw-r--r--libstore/storecat.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/libstore/storecat.c b/libstore/storecat.c
deleted file mode 100644
index f1374390..00000000
--- a/libstore/storecat.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Test program for libstore -- outputs the concatenation of stores */
-
-#include <argp.h>
-#include <error.h>
-#include <unistd.h>
-
-#include "store.h"
-
-int
-main (int argc, char **argv)
-{
- error_t err;
- struct store *s;
- char buf[4096], *data = buf;
- size_t data_len = sizeof (buf);
- struct store_argp_params params = { 0, 0, 0 };
-
- argp_parse (&store_argp, argc, argv, 0, 0, &params);
- s = params.result;
-
- err = store_read (s, 0, s->size, &data, &data_len);
- if (err)
- error (5, err, s->name ? "%s" : "<store>", s->name);
-
- if (write (1, data, data_len) < 0)
- error (6, errno, "stdout");
-
- exit (0);
-}