Move the declaration of sbuff[] to avoid a compiler warning
card-entersafe.c: In function ‘entersafe_write_rsa_key_factor’: card-entersafe.c:1131: warning: declaration of ‘sbuff’ shadows a previous local card-entersafe.c:1126: warning: shadowed declaration is here git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3749 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
bceeb38977
commit
45e12e6ff5
|
@ -1123,7 +1123,6 @@ static int entersafe_write_rsa_key_factor(sc_card_t *card,
|
|||
{
|
||||
int r;
|
||||
sc_apdu_t apdu;
|
||||
u8 sbuff[SC_MAX_APDU_BUFFER_SIZE];
|
||||
|
||||
SC_FUNC_CALLED(card->ctx, 1);
|
||||
|
||||
|
@ -1144,6 +1143,8 @@ static int entersafe_write_rsa_key_factor(sc_card_t *card,
|
|||
}
|
||||
|
||||
{/* Write 'x'; */
|
||||
u8 sbuff[SC_MAX_APDU_BUFFER_SIZE];
|
||||
|
||||
sc_format_apdu(card,&apdu,SC_APDU_CASE_3_SHORT,0x46,factor,0x00);
|
||||
|
||||
memcpy(sbuff,data.data,data.len);
|
||||
|
|
Loading…
Reference in New Issue