Diffusion GnuPG 9551275857c1

scd: Use enums for cardtype and apptype.

Authored by werner on Wed, Jun 19, 2:30 PM.

Description

scd: Use enums for cardtype and apptype.

* scd/app-common.h (cardtype_t): New.
(apptype_t): New.
(struct card_ctx_s): Change type of cardtype.
(struct app_ctx_s): Change type of apptype.  Adjust all users.
* scd/app.c (struct app_priority_list_s): Add field apptype.
(strcardtype): New.  Use as needed.
(strapptype): New.  Use as needed.

Using strcmp is lame and we can't use a switch to let the compiler
complain about missed cases.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Committed
wernerFri, Jun 21, 11:42 AM
Parents
rG0ccb5ddef18f: po: Update Japanese Translation.
Branches
Unknown
Tags
Unknown