Fix compiler warnings
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@157 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9dc7054919
commit
b75b88a8b8
|
@ -386,7 +386,8 @@ static int construct_fci(const struct sc_file *file, u8 *out, size_t *outlen)
|
|||
|
||||
static int iso7816_create_file(struct sc_card *card, const struct sc_file *file)
|
||||
{
|
||||
int r, len;
|
||||
int r;
|
||||
size_t len;
|
||||
u8 sbuf[SC_MAX_APDU_BUFFER_SIZE];
|
||||
struct sc_apdu apdu;
|
||||
|
||||
|
|
|
@ -374,7 +374,7 @@ int sc_pkcs15_create_cdf(struct sc_pkcs15_card *p15card,
|
|||
size_t bufsize = 0, tmpsize;
|
||||
int i = 0, r;
|
||||
const struct sc_pkcs15_cert_info *cert;
|
||||
u8 str[10240];
|
||||
char str[10240];
|
||||
|
||||
for (i = 0; (cert = certs[i]) != NULL; i++) {
|
||||
r = encode_x509_cert_info(p15card->card->ctx,
|
||||
|
|
|
@ -75,7 +75,7 @@ int test2()
|
|||
struct sc_path path;
|
||||
struct sc_file file;
|
||||
u8 buf[32];
|
||||
u8 output[1024];
|
||||
char output[1024];
|
||||
int i;
|
||||
|
||||
sc_format_path("1234", &path);
|
||||
|
|
|
@ -37,7 +37,7 @@ const char *cmds[] = {
|
|||
};
|
||||
const int nr_cmds = sizeof(cmds)/sizeof(cmds[0]);
|
||||
|
||||
int die(int ret)
|
||||
void die(int ret)
|
||||
{
|
||||
if (card) {
|
||||
sc_unlock(card);
|
||||
|
@ -222,9 +222,9 @@ int do_cat(const char *arg)
|
|||
printf("Usage: cat [file_id]\n");
|
||||
return -1;
|
||||
}
|
||||
strcpy(buf, "I");
|
||||
strcat(buf, arg);
|
||||
sc_format_path(buf, &path);
|
||||
strcpy((char *) buf, "I");
|
||||
strcat((char *) buf, arg);
|
||||
sc_format_path((char *) buf, &path);
|
||||
if (path.len != 2) {
|
||||
printf("Usage: cat [file_id]\n");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue