mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
crypto: _notmuch_crypto_cleanup should return void
There's no chance that _notmuch_crypto_cleanup() will ever return anything other than 0, and no one ever checks its return value anyway. So make it return void instead of int.
This commit is contained in:
parent
3e9857a0b9
commit
bfd669bb2e
2 changed files with 3 additions and 6 deletions
7
crypto.c
7
crypto.c
|
@ -117,7 +117,7 @@ _notmuch_crypto_get_gmime_context (_notmuch_crypto_t *crypto, const char *protoc
|
|||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
_notmuch_crypto_cleanup (_notmuch_crypto_t *crypto)
|
||||
{
|
||||
if (crypto->gpgctx) {
|
||||
|
@ -129,12 +129,9 @@ _notmuch_crypto_cleanup (_notmuch_crypto_t *crypto)
|
|||
g_object_unref (crypto->pkcs7ctx);
|
||||
crypto->pkcs7ctx = NULL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
int _notmuch_crypto_cleanup (unused(_notmuch_crypto_t *crypto))
|
||||
void _notmuch_crypto_cleanup (unused(_notmuch_crypto_t *crypto))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -185,7 +185,7 @@ GMimeCryptoContext *
|
|||
_notmuch_crypto_get_gmime_context (_notmuch_crypto_t *crypto, const char *protocol);
|
||||
#endif
|
||||
|
||||
int
|
||||
void
|
||||
_notmuch_crypto_cleanup (_notmuch_crypto_t *crypto);
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue