diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-01-18 13:07:29 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-01-18 13:07:29 +0000 |
commit | b499fc695e1b392167632370bcbf155229d36ded (patch) | |
tree | b1b8ff5d76a99bd14a0a2794676018f7ef82e328 | |
parent | 81f55d00c85342c2b0cea983babb369df0964faf (diff) | |
download | wyslij-po-b499fc695e1b392167632370bcbf155229d36ded.tar.gz wyslij-po-b499fc695e1b392167632370bcbf155229d36ded.tar.bz2 |
Compatibility fixes for CVS MU.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/main.c | 16 |
2 files changed, 12 insertions, 8 deletions
@@ -1,3 +1,7 @@ +2008-01-18 Sergey Poznyakoff <gray@gnu.org.ua> + + * src/main.c: Compatibility fixes for CVS MU. + 2007-11-20 Sergey Poznyakoff <gray@gnu.org.ua> * src/main.c: Define MU-1.3x configuration statements. @@ -205,12 +205,12 @@ static struct argp argp = { #if MAILUTILS_VERSION_NUMBER >= 1290 static int -_cb_verify_option (mu_cfg_locus_t *locus, void *data, char *arg, int bit) +_cb_verify_option (mu_debug_t debug, void *data, char *arg, int bit) { int flag; if (mu_cfg_parse_boolean (arg, &flag)) { - mu_error ("%s:%u: %s", locus->file, locus->line, _("not a boolean")); + mu_cfg_format_error (debug, MU_DEBUG_ERROR, _("not a boolean")); return 1; } if (flag) @@ -221,15 +221,15 @@ _cb_verify_option (mu_cfg_locus_t *locus, void *data, char *arg, int bit) } static int -_cb_verify_po_time (mu_cfg_locus_t *locus, void *data, char *arg) +_cb_verify_po_time (mu_debug_t debug, void *data, char *arg) { - return _cb_verify_option (locus, data, arg, VERIFY_PO_TIME); + return _cb_verify_option (debug, data, arg, VERIFY_PO_TIME); } static int -_cb_verify_version (mu_cfg_locus_t *locus, void *data, char *arg) +_cb_verify_version (mu_debug_t debug, void *data, char *arg) { - return _cb_verify_option (locus, data, arg, VERIFY_PACKAGE_VERSION); + return _cb_verify_option (debug, data, arg, VERIFY_PACKAGE_VERSION); } struct mu_cfg_param wyslij_po_cfg_param[] = { @@ -241,8 +241,8 @@ struct mu_cfg_param wyslij_po_cfg_param[] = { { "fcc", mu_cfg_string, &fcc }, { "from", mu_cfg_string, &sender }, { "from-po", mu_cfg_bool, &set_sender_from_po }, - { "verify-po-time", mu_cfg_callback, NULL, _cb_verify_po_time }, - { "verify-version", mu_cfg_callback, NULL, _cb_verify_version }, + { "verify-po-time", mu_cfg_callback, NULL, 0, _cb_verify_po_time }, + { "verify-version", mu_cfg_callback, NULL, 0, _cb_verify_version }, { NULL } }; #endif |