change type from int to unsigned int to avoid 2 compiler warnings:

pkcs15-gemsafeV1.c:150: warning: comparison between signed and unsigned
pkcs15-gemsafeV1.c:331: warning: comparison between signed and unsigned


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3429 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
ludovic.rousseau 2008-03-17 15:09:16 +00:00
parent 2800607c4a
commit 4f53d06c17
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ static int gemsafe_get_cert_len(sc_card_t *card, sc_path_t *path)
u8 ibuf[248];
struct sc_file *file;
size_t objlen, certlen;
int block=0;
unsigned int block=0;
int found = 0;
unsigned int offset=0, index_local, i=0;
@ -320,7 +320,7 @@ int sc_pkcs15emu_gemsafeV1_init_ex( sc_pkcs15_card_t *p15card,
}
static sc_pkcs15_df_t *
sc_pkcs15emu_get_df(sc_pkcs15_card_t *p15card, int type)
sc_pkcs15emu_get_df(sc_pkcs15_card_t *p15card, unsigned int type)
{
sc_pkcs15_df_t *df;
sc_file_t *file;