From: Marcus Brinkmann Date: Tue, 29 Jul 2003 19:34:03 +0000 (+0000) Subject: 2003-07-29 Marcus Brinkmann X-Git-Tag: gpgme-0-4-2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95390e074ac3c68d1b477170b662ed13d5b6b1ac;p=gpgme.git 2003-07-29 Marcus Brinkmann * decrypt-verify.c (decrypt_verify_status_handler): Expand silly and wrong expression. * encrypt-sign.c (encrypt_sign_status_handler): Likewise. * encrypt.c (encrypt_sym_status_handler): Likewise. * sign.c (sign_status_handler): Likewise. * verify.c (verify_status_handler): Likewise. * decrypt.c (decrypt_status_handler): Likewise. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 3f10f0d..6e53a72 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,5 +1,13 @@ 2003-07-29 Marcus Brinkmann + * decrypt-verify.c (decrypt_verify_status_handler): Expand silly + and wrong expression. + * encrypt-sign.c (encrypt_sign_status_handler): Likewise. + * encrypt.c (encrypt_sym_status_handler): Likewise. + * sign.c (sign_status_handler): Likewise. + * verify.c (verify_status_handler): Likewise. + * decrypt.c (decrypt_status_handler): Likewise. + * engine.c (gpgme_get_engine_info): Initialize NULL. 2003-07-23 Marcus Brinkmann diff --git a/gpgme/decrypt-verify.c b/gpgme/decrypt-verify.c index 916cda6..40818bf 100644 --- a/gpgme/decrypt-verify.c +++ b/gpgme/decrypt-verify.c @@ -30,9 +30,14 @@ static gpgme_error_t decrypt_verify_status_handler (void *priv, gpgme_status_code_t code, char *args) { - return _gpgme_progress_status_handler (priv, code, args) - || _gpgme_decrypt_status_handler (priv, code, args) - || _gpgme_verify_status_handler (priv, code, args); + gpgme_error_t err; + + err = _gpgme_progress_status_handler (priv, code, args); + if (!err) + err = _gpgme_decrypt_status_handler (priv, code, args); + if (!err) + err = _gpgme_verify_status_handler (priv, code, args); + return err; } diff --git a/gpgme/decrypt.c b/gpgme/decrypt.c index e503b26..030073f 100644 --- a/gpgme/decrypt.c +++ b/gpgme/decrypt.c @@ -147,8 +147,12 @@ _gpgme_decrypt_status_handler (void *priv, gpgme_status_code_t code, static gpgme_error_t decrypt_status_handler (void *priv, gpgme_status_code_t code, char *args) { - return _gpgme_progress_status_handler (priv, code, args) - || _gpgme_decrypt_status_handler (priv, code, args); + gpgme_error_t err; + + err = _gpgme_progress_status_handler (priv, code, args); + if (!err) + err = _gpgme_decrypt_status_handler (priv, code, args); + return err; } diff --git a/gpgme/encrypt-sign.c b/gpgme/encrypt-sign.c index 8afb1f1..ae4b594 100644 --- a/gpgme/encrypt-sign.c +++ b/gpgme/encrypt-sign.c @@ -30,9 +30,14 @@ static gpgme_error_t encrypt_sign_status_handler (void *priv, gpgme_status_code_t code, char *args) { - return _gpgme_progress_status_handler (priv, code, args) - || _gpgme_encrypt_status_handler (priv, code, args) - || _gpgme_sign_status_handler (priv, code, args); + gpgme_error_t err; + + err = _gpgme_progress_status_handler (priv, code, args); + if (!err) + err = _gpgme_encrypt_status_handler (priv, code, args); + if (!err) + err = _gpgme_sign_status_handler (priv, code, args); + return err; } diff --git a/gpgme/encrypt.c b/gpgme/encrypt.c index 61619ed..6eb177e 100644 --- a/gpgme/encrypt.c +++ b/gpgme/encrypt.c @@ -117,8 +117,12 @@ _gpgme_encrypt_status_handler (void *priv, gpgme_status_code_t code, static gpgme_error_t encrypt_sym_status_handler (void *priv, gpgme_status_code_t code, char *args) { - return _gpgme_progress_status_handler (priv, code, args) - || _gpgme_passphrase_status_handler (priv, code, args); + gpgme_error_t err; + + err = _gpgme_progress_status_handler (priv, code, args); + if (!err) + err = _gpgme_passphrase_status_handler (priv, code, args); + return err; } diff --git a/gpgme/sign.c b/gpgme/sign.c index af00789..0f2c4ee 100644 --- a/gpgme/sign.c +++ b/gpgme/sign.c @@ -236,8 +236,12 @@ _gpgme_sign_status_handler (void *priv, gpgme_status_code_t code, char *args) static gpgme_error_t sign_status_handler (void *priv, gpgme_status_code_t code, char *args) { - return _gpgme_progress_status_handler (priv, code, args) - || _gpgme_sign_status_handler (priv, code, args); + gpgme_error_t err; + + err = _gpgme_progress_status_handler (priv, code, args); + if (!err) + err = _gpgme_sign_status_handler (priv, code, args); + return err; } diff --git a/gpgme/verify.c b/gpgme/verify.c index 105d1c4..43190f6 100644 --- a/gpgme/verify.c +++ b/gpgme/verify.c @@ -532,8 +532,12 @@ _gpgme_verify_status_handler (void *priv, gpgme_status_code_t code, char *args) static gpgme_error_t verify_status_handler (void *priv, gpgme_status_code_t code, char *args) { - return _gpgme_progress_status_handler (priv, code, args) - || _gpgme_verify_status_handler (priv, code, args); + gpgme_error_t err; + + err = _gpgme_progress_status_handler (priv, code, args); + if (!err) + err = _gpgme_verify_status_handler (priv, code, args); + return err; }