Removed some compiler warnings

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1079 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-04-29 09:27:36 +00:00
parent b0d4f06703
commit 9213f6c5cc
1 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ static void print_tags_recursive(const u8 * buf0, const u8 * buf,
putchar(' '); putchar(' ');
} }
printf("%02X %s: tag 0x%02X, length %3d: ", printf("%02X %s: tag 0x%02X, length %3d: ",
cla | tag, classes[cla >> 6], tag & 0x1f, len); cla | tag, classes[cla >> 6], tag & 0x1f, (int) len);
if (len + hlen > bytesleft) { if (len + hlen > bytesleft) {
printf(" Illegal length!\n"); printf(" Illegal length!\n");
return; return;
@ -296,7 +296,7 @@ static void print_tags_recursive(const u8 * buf0, const u8 * buf,
void sc_asn1_print_tags(const u8 * buf, size_t buflen) void sc_asn1_print_tags(const u8 * buf, size_t buflen)
{ {
printf("Printing tags for buffer of length %d\n", buflen); printf("Printing tags for buffer of length %d\n", (int) buflen);
print_tags_recursive(buf, buf, buflen, 0); print_tags_recursive(buf, buf, buflen, 0);
} }