pkcs15-tool.c:71: warning: comma at end of enumerator list

pkcs15-tool.c: In function 'print_pin_info':
pkcs15-tool.c:911: warning: comparison of unsigned expression >= 0 is always true
pkcs15-tool.c: In function 'test_update':
pkcs15-tool.c:1254: warning: comparison between signed and unsigned


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3814 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
s 2009-11-10 12:55:55 +00:00
parent ed93bfa548
commit 16d9d8ff43
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ enum {
#endif
OPT_PIN,
OPT_NEWPIN,
OPT_PUK,
OPT_PUK
};
#define NELEMENTS(x) (sizeof(x)/sizeof((x)[0]))
@ -908,7 +908,7 @@ static void print_pin_info(const struct sc_pkcs15_object *obj)
(unsigned long)pin->stored_length);
printf("\tPad char : 0x%02X\n", pin->pad_char);
printf("\tReference : %d\n", pin->reference);
if (pin->type >= 0 && pin->type < sizeof(pin_types)/sizeof(pin_types[0]))
if (pin->type < sizeof(pin_types)/sizeof(pin_types[0]))
printf("\tType : %s\n", pin_types[pin->type]);
else
printf("\tType : [encoding %d]\n", pin->type);
@ -1243,7 +1243,7 @@ static int test_update(sc_card_t *in_card)
}
{
int i=0;
size_t i=0;
while(i < rbuf[1]) {
if (rbuf[2+i] == 0x86) { /* found our buffer */
break;