Skip to content

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   src/libopensc/card-piv.c
  • Loading branch information
frankmorgner authored and Jakuje committed Sep 12, 2023
1 parent 06d58f1 commit b5ee418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion etc/opensc.conf.example.in
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ app default {
}

card_driver PIV-II {
# *NOTE* The following are only useable if OpenSC is configured with --enable-piv-sm
# *NOTE* The following are only usable if OpenSC is configured with --enable-piv-sm

# "piv_pairing_code"
# Virtual Contact Interface (VCI) an optional feature, to allow
Expand Down
6 changes: 3 additions & 3 deletions src/libopensc/card-piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,12 +1636,12 @@ static int piv_parse_pairing_code(sc_card_t *card, const char *option)
static int piv_load_options(sc_card_t *card)
{
int r;
piv_private_data_t * priv = PIV_DATA(card);
size_t i, j;
scconf_block **found_blocks, *block;

const char *option = NULL;
#ifdef ENABLE_PIV_SM
piv_private_data_t * priv = PIV_DATA(card);
const char *option = NULL;
int piv_pairing_code_found = 0;
int piv_use_sm_found = 0;
#endif
Expand Down Expand Up @@ -6114,7 +6114,7 @@ piv_pin_cmd(sc_card_t *card, struct sc_pin_cmd_data *data, int *tries_left)

static int piv_logout(sc_card_t *card)
{
int r = SC_ERROR_NOT_SUPPORTED;
int r = SC_ERROR_INTERNAL;
piv_private_data_t * priv = PIV_DATA(card);

LOG_FUNC_CALLED(card->ctx);
Expand Down

0 comments on commit b5ee418

Please sign in to comment.