summaryrefslogtreecommitdiff
path: root/mh/repl.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-12-16 00:02:14 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-12-16 00:02:14 +0200
commit96dc9ab99e9518f5f21a7710e396da8c3fd833b5 (patch)
treeafc811d9f053e41d3747806eafafbda7be1f0017 /mh/repl.c
parentb66ffedcecf7506efc8631dfe1047c0a1d28af80 (diff)
downloadmailutils-96dc9ab99e9518f5f21a7710e396da8c3fd833b5.tar.gz
mailutils-96dc9ab99e9518f5f21a7710e396da8c3fd833b5.tar.bz2
Add TLS to MH. Handle --debug-level and --debug-line-info options.
* mailbox/mbx_default.c (attach_auth_ticket): Do not proceed if auth is NULL. * mh/mh_getopt.h (struct mh_argp_data): Change return type and signature of handler. (mh_argp_parse): Likewise. * mh/mh_argp.c (parse_opt): Rewrite using new handler prototype. (mh_argp_parse): Use new hanlder type. Assign argp children. * mh/mh_init.c (mh_init): Call mu_init_tls_libs. * mh/ali.c: Update opt_handler * mh/anno.c: Update opt_handler * mh/burst.c: Update opt_handler * mh/comp.c: Update opt_handler * mh/fmtcheck.c: Update opt_handler * mh/folder.c: Update opt_handler * mh/forw.c: Update opt_handler * mh/inc.c: Update opt_handler * mh/install-mh.c: Update opt_handler * mh/mark.c: Update opt_handler * mh/mhl.c: Update opt_handler * mh/mhn.c: Update opt_handler * mh/mhparam.c: Update opt_handler * mh/mhpath.c: Update opt_handler * mh/pick.c: Update opt_handler * mh/refile.c: Update opt_handler * mh/repl.c: Update opt_handler * mh/rmf.c: Update opt_handler * mh/rmm.c: Update opt_handler * mh/scan.c: Update opt_handler * mh/send.c: Update opt_handler * mh/sortm.c: Update opt_handler * mh/whatnow.c: Update opt_handler * mh/whom.c: Update opt_handler
Diffstat (limited to 'mh/repl.c')
-rw-r--r--mh/repl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mh/repl.c b/mh/repl.c
index e501fef64..712595f3c 100644
--- a/mh/repl.c
+++ b/mh/repl.c
@@ -138,8 +138,8 @@ decode_cc_flag (const char *opt, const char *arg)
return rc;
}
-static int
-opt_handler (int key, char *arg, void *unused, struct argp_state *state)
+static error_t
+opt_handler (int key, char *arg, struct argp_state *state)
{
char *s;
@@ -271,7 +271,7 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state)
break;
default:
- return 1;
+ return ARGP_ERR_UNKNOWN;
}
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.