Changeset 3521

Show
Ignore:
Timestamp:
05/22/08 14:26:08 (6 months ago)
Author:
ludovic.rousseau
Message:

do not use system as a variable name. system() is also a function

card-akis.c:400: warning: declaration of 'system' shadows a global declaration
/usr/include/stdlib.h:730: warning: shadowed declaration is here

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/card-akis.c

    r3502 r3521  
    398398{ 
    399399        int r; 
    400         u8 system[128]; 
     400        u8 system_buffer[128]; 
    401401 
    402402        if (!serial) 
     
    407407 
    408408        /* read serial number */ 
    409         r = akis_get_data(card, 6, system, 0x4D); 
     409        r = akis_get_data(card, 6, system_buffer, 0x4D); 
    410410        SC_TEST_RET(card->ctx, r, "GET_DATA failed"); 
    411411 
    412412        card->serialnr.len = 12; 
    413         memcpy(card->serialnr.value, system+55, 12); 
     413        memcpy(card->serialnr.value, system_buffer+55, 12); 
    414414 
    415415end: