diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-16 00:02:14 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-16 00:02:14 +0200 |
commit | 96dc9ab99e9518f5f21a7710e396da8c3fd833b5 (patch) | |
tree | afc811d9f053e41d3747806eafafbda7be1f0017 /mh/comp.c | |
parent | b66ffedcecf7506efc8631dfe1047c0a1d28af80 (diff) | |
download | mailutils-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/comp.c')
-rw-r--r-- | mh/comp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -83,8 +83,8 @@ static int build_only = 0; /* --build flag */ static int use_draft = 0; /* --use flag */ static char *draftmessage = "new"; -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) { switch (key) { @@ -148,7 +148,7 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state) break; default: - return 1; + return ARGP_ERR_UNKNOWN; } return 0; } |