Show
Ignore:
Timestamp:
05/05/08 15:00:01 (7 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/tools/opensc-explorer.c

    r3405 r3510  
    130130        } else { 
    131131                /* file id */ 
    132                 int buf[2]; 
     132                unsigned int buf[2]; 
    133133                u8 cbuf[2]; 
    134134         
     
    535535                goto usage; 
    536536        /* %z isn't supported everywhere */ 
    537         if (sscanf(argv[1], "%d", &size) != 1) 
     537        if (sscanf(argv[1], "%u", &size) != 1) 
    538538                goto usage; 
    539539        file = sc_file_new(); 
     
    565565        if (arg_to_path(argv[0], &path, 1) != 0) 
    566566                goto usage; 
    567         if (sscanf(argv[1], "%d", &size) != 1) 
     567        if (sscanf(argv[1], "%u", &size) != 1) 
    568568                goto usage; 
    569569        file = sc_file_new();