Changeset 1160
- Timestamp:
- 01/10/10 13:22:05 (14 years ago)
- Location:
- trunk/csctapi
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/cardterminal.c
r1137 r1160 208 208 { 209 209 char ret, aux; 210 u int i;210 unsigned int i; 211 211 212 212 ret = OK; … … 245 245 } 246 246 247 CT_Slot * CardTerminal_GetSlot (CardTerminal * ct, u int number)247 CT_Slot * CardTerminal_GetSlot (CardTerminal * ct, unsigned int number) 248 248 { 249 249 if (number < (ct->num_slots)) … … 601 601 BYTE buffer[CARDTERMINAL_GETSTATUS_BUFFER_SIZE], p1, p2; 602 602 bool card, change; 603 u int i;603 unsigned int i; 604 604 unsigned length; 605 605 char ret = OK; … … 761 761 { 762 762 BYTE buffer[CARDTERMINAL_EJECTICC_BUFFER_SIZE], p1, p2; 763 u int sn, timeout;763 unsigned int sn, timeout; 764 764 unsigned length; 765 765 bool card, change; … … 817 817 /* Get the card removal timeout */ 818 818 if (APDU_Cmd_Lc (cmd) == 1) 819 timeout = (u int) (*APDU_Cmd_Data (cmd));819 timeout = (unsigned int) (*APDU_Cmd_Data (cmd)); 820 820 else 821 821 timeout = 0; -
trunk/csctapi/cardterminal.h
r1137 r1160 51 51 IO_Serial * io; /* Serial device */ 52 52 CT_Slot * slots[CARDTERMINAL_MAX_SLOTS]; /* Array of CT_Slot's */ 53 u int num_slots; /* Number of CT_Slot's */53 unsigned int num_slots; /* Number of CT_Slot's */ 54 54 #ifdef HAVE_PTHREAD_H 55 55 pthread_mutex_t mutex; … … 76 76 /* Return the reference to a slot */ 77 77 extern CT_Slot * 78 CardTerminal_GetSlot (CardTerminal * ct, u int number);78 CardTerminal_GetSlot (CardTerminal * ct, unsigned int number); 79 79 80 80 /* Close a CardTerminal */ -
trunk/csctapi/config.h
r1084 r1160 3 3 4 4 #include "../oscam-config.h" 5 #include "../globals.h"6 5 7 6 /* Debug CT-API */ 8 7 /* #undef DEBUG_CTAPI */ 9 // 8 //#define DEBUG_CTAPI 1 10 9 11 10 /* Debug Integrated Circuit Card */ 12 11 /* #undef DEBUG_ICC */ 13 //#define DEBUG_ICC 112 #define DEBUG_ICC 1 14 13 15 14 /* Debug Interface Device */ 16 15 /* #undef DEBUG_IFD */ 17 //#define DEBUG_IFD 116 #define DEBUG_IFD 1 18 17 19 18 /* Debug IFD Handler */ 20 19 /* #undef DEBUG_IFDH */ 21 //#define DEBUG_IFDH 120 #define DEBUG_IFDH 1 22 21 23 22 /* Debug Input/Output */ 24 23 /* #undef DEBUG_IO */ 25 //#define DEBUG_IO 124 #define DEBUG_IO 1 26 25 27 26 /* Debug Protocol */ 28 27 /* #undef DEBUG_PROTOCOL */ 29 //#define DEBUG_PROTOCOL 128 #define DEBUG_PROTOCOL 1 30 29 31 30 //#define PROTOCOL_T0_ISO 1 32 //#define PROTOCOL_T1_ISO 131 #define PROTOCOL_T1_ISO 1 33 32 34 33 -
trunk/csctapi/ct_slot.h
r1137 r1160 73 73 /* Check for card inserted */ 74 74 extern char 75 CT_Slot_Check (CT_Slot * slot, u int timeout, bool * card, bool * change);75 CT_Slot_Check (CT_Slot * slot, unsigned int timeout, bool * card, bool * change); 76 76 77 77 /* Probe ICC type and protocol */
Note:
See TracChangeset
for help on using the changeset viewer.