Minor compiler warning fixes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@424 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
776fa9030c
commit
edfb4dd7f0
|
@ -391,7 +391,8 @@ do_card_driver(int argc, char **argv)
|
|||
static int
|
||||
do_key(int argc, char **argv)
|
||||
{
|
||||
unsigned int type, id, key_len;
|
||||
unsigned int type, id;
|
||||
size_t key_len;
|
||||
const char *key = argv[1];
|
||||
unsigned char keybuf[32];
|
||||
|
||||
|
@ -815,7 +816,7 @@ do_pin_attempts(int argc, char **argv)
|
|||
{
|
||||
struct pin_info *pi = cur_pin;
|
||||
|
||||
if (get_uint(argv[0], &pi->pin.tries_left))
|
||||
if (get_uint(argv[0], (unsigned int *) &pi->pin.tries_left))
|
||||
return 1;
|
||||
/*
|
||||
pi->puk.tries_left = 0;
|
||||
|
|
|
@ -332,12 +332,12 @@ do_init_app(struct sc_profile *profile)
|
|||
return r;
|
||||
|
||||
memset(&args, 0, sizeof(args));
|
||||
args.so_pin = opt_pins[OPT_PIN2 & 3];
|
||||
args.so_pin = (const u8 *) opt_pins[OPT_PIN2 & 3];
|
||||
if (args.so_pin)
|
||||
args.so_pin_len = strlen(args.so_pin);
|
||||
args.so_puk = opt_pins[OPT_PUK2 & 3];
|
||||
args.so_pin_len = strlen((char *) args.so_pin);
|
||||
args.so_puk = (const u8 *) opt_pins[OPT_PUK2 & 3];
|
||||
if (args.so_puk)
|
||||
args.so_puk_len = strlen(args.so_puk);
|
||||
args.so_puk_len = strlen((char *) args.so_puk);
|
||||
return sc_pkcs15init_add_app(card, profile, &args);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue