diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-01-05 18:09:32 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-01-05 18:09:32 +0000 |
commit | e8548a14f1268da5cefe45656c7518148a504c75 (patch) | |
tree | d0419987bba42bbc5ad51e4caa0337c73723ff21 /sieve/sieve.c | |
parent | d12f61a65fbd800b1b74b7ee1d1bd8bbf9950cc7 (diff) | |
download | mailutils-e8548a14f1268da5cefe45656c7518148a504c75.tar.gz mailutils-e8548a14f1268da5cefe45656c7518148a504c75.tar.bz2 |
Use mu_true_answer_p()
Diffstat (limited to 'sieve/sieve.c')
-rw-r--r-- | sieve/sieve.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sieve/sieve.c b/sieve/sieve.c index 72b6a7e88..92872726c 100644 --- a/sieve/sieve.c +++ b/sieve/sieve.c @@ -117,16 +117,12 @@ static int sieve_print_locus = 1; /* Should the log messages include the static int is_true_p (char *p) { + int rc; if (!p) return 1; - /* TRANSLATORS: This is the list of characters meaning 'Yes'. Please, - preserve yY in your translation, e.g., for German: - - msgstr "yYjJ"; - */ - if (strchr (_("yY"), *p)) - return 1; - return 0; + if ((rc = mu_true_answer_p (p)) == -1) + return 0; + return rc; } static error_t |