Show
Ignore:
Timestamp:
05/05/08 13:00:01 (8 months ago)
Author:
ludovic.rousseau
Message:

Use size_t instead of int when needed, plus some other minor changes

Patch bug.1 included in Ticket #176

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/tests/print.c

    r3183 r3510  
    9696{ 
    9797        int i; 
     98        size_t j; 
    9899        const char *usages[] = 
    99100        { 
     
    132133        if (prkey->path.len) { 
    133134                printf("\tPath        : "); 
    134                 for (i = 0; i < prkey->path.len; i++) 
    135                         printf("%02X", prkey->path.value[i]); 
     135                for (j = 0; j < prkey->path.len; j++) 
     136                        printf("%02X", prkey->path.value[j]); 
    136137                if (prkey->path.type == SC_PATH_TYPE_PATH_PROT) 
    137138                        printf(" (protected)"); 
     
    144145{ 
    145146        int i; 
     147        size_t j; 
    146148        const char *usages[] = 
    147149        { 
     
    179181        printf("\tNative      : %s\n", pubkey->native ? "yes" : "no"); 
    180182        printf("\tPath        : "); 
    181         for (i = 0; i < pubkey->path.len; i++) 
    182                 printf("%02X", pubkey->path.value[i]); 
     183        for (j = 0; j < pubkey->path.len; j++) 
     184                printf("%02X", pubkey->path.value[j]); 
    183185        printf("\n"); 
    184186        printf("\tID          : %s\n", sc_pkcs15_print_id(&pubkey->id));