fix compiler warning

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1839 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2004-07-19 16:12:43 +00:00
parent f8369b08ac
commit 86345157b4
3 changed files with 7 additions and 9 deletions

View File

@ -849,13 +849,13 @@ auth_delete_file(struct sc_card *card, const struct sc_path *path)
SC_TEST_RET(card->ctx, len, "list DF failed");
for (ii=0; ii<len/2; ii++) {
sc_path_t path;
sc_path_t tpath;
path.value[0] = *(lbuf + ii*2);
path.value[1] = *(lbuf + ii*2 + 1);
path.len = 2;
tpath.value[0] = *(lbuf + ii*2);
tpath.value[1] = *(lbuf + ii*2 + 1);
tpath.len = 2;
rv = auth_delete_file(card, &path);
rv = auth_delete_file(card, &tpath);
SC_TEST_RET(card->ctx, rv, "delete failed");
}
// rv = select_parent(card, &file);
@ -1153,8 +1153,6 @@ auth_create_file(struct sc_card *card, struct sc_file *file)
return SC_ERROR_CARD_CMD_FAILED;
if (card->cache_valid) {
u8 file_id[2];
file_id[0] = file->id >> 8;
file_id[1] = file->id & 0xFF;
if (card->cache.current_path.len != 0)

View File

@ -70,7 +70,8 @@ sc_pkcs15emu_infocamere_init(sc_pkcs15_card_t *p15card)
const char *authPRKEY = "Authentication Key";
const char *nonrepPRKEY = "Non repudiation Key";
int r, len_iccsn, len_chn;
int r;
size_t len_chn, len_iccsn;
sc_format_path("2F02", &path);

View File

@ -225,7 +225,6 @@ int sc_build_pin(u8 *buf, size_t buflen, struct sc_pin_cmd_pin *pin, int pad)
return SC_ERROR_INVALID_ARGUMENTS;
if (pin->encoding == SC_PIN_ENCODING_GLP) {
int i;
while (pin_len > 0 && pin->data[pin_len - 1] == 0xFF)
pin_len--;
if (pin_len > 12)