Home GnuPG
Diffusion GnuPG d3b5cad2346b

agent: Avoid magic numbers. Use more accurate names.
d3b5cad2346bUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

agent: Avoid magic numbers. Use more accurate names.

* agent/call-pinentry.c (PINENTRY_STATUS_CLOSE_BUTTON): New constant.
(PINENTRY_STATUS_PIN_REPEATED): Likewise.
(close_button_status_cb): Rename from this...
(pinentry_status_cb): ... to this.  Use the constants.
(agent_askpin): Rename local variable from close_button to
pinentry_status.  Use symbolic constants rather than magic numbers.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on May 6 2015, 2:35 PM
Parents
rG874ef16e70ab: gpg: Improve 'General key info' line of --card-status.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rGd3b5cad2346b: agent: Avoid magic numbers. Use more accurate names. (authored by Neal H. Walfield <neal@g10code.com>).May 7 2015, 3:03 PM