Commit 1214fc97 authored by Niels Möller's avatar Niels Möller

* src/lsh-decode-key.c (main): Use make_io_backend().

* src/lsh.c (main): Likewise.
* src/lsh-writekey.c (main): Likewise.
* src/lsh-export-key.c (main): Likewise.
* src/sexp-conv.c (main): Likewise.
* src/srp-gen.c (main): Likewise.

Rev: src/sexp-conv.c:1.5
Rev: src/srp-gen.c:1.5
parent 43220cf4
......@@ -384,12 +384,10 @@ int main(int argc, char **argv)
{
struct sexp_conv_options *options = make_options();
struct exception_handler *e;
NEW(io_backend, backend);
struct io_backend *backend = make_io_backend();
argp_parse(&main_argp, argc, argv, 0, NULL, options);
init_backend(backend);
/* Patch the parent pointer later */
e = make_exception_handler(do_exc_sexp_conv_handler,
NULL, HANDLER_CONTEXT);
......
......@@ -238,11 +238,10 @@ STATIC_EXCEPTION_HANDLER(do_srp_gen_handler, NULL);
int main(int argc, char **argv)
{
NEW(io_backend, backend);
struct srp_gen_options *options;
init_backend(backend);
options = make_srp_gen_options(backend, &exc_handler);
struct io_backend *backend = make_io_backend();
struct srp_gen_options *options
= make_srp_gen_options(backend, &exc_handler);
argp_parse(&main_argp, argc, argv, 0, NULL, options);
A_WRITE(options->dest,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment