]> git.notmuchmail.org Git - notmuch/commit - util/crypto.c
util/crypto: _n_m_crypto_potential_payload: rename "payload" arg to "part"
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 29 Aug 2019 15:38:49 +0000 (11:38 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 1 Sep 2019 11:36:12 +0000 (08:36 -0300)
commit8b25643d08b9388ae9c38837a3dfd3dbc6b085cf
tree19d9f297efcdfd609c2b4a33588ee3fbfa8b773f
parent27b25e45dc675af2e9ffeea014a54e34bfbdad83
util/crypto: _n_m_crypto_potential_payload: rename "payload" arg to "part"

_notmuch_message_crypto_potential_payload is called on a GMimeObject
while walking the MIME tree of a message to determine whether that
object is the payload.  It doesn't make sense to name the argument
"payload" if it might not be the payload, so we rename it to "part"
for clarity.

This is a non-functional change, just semantic cleanup.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
util/crypto.c
util/crypto.h