Changeset 633
- Timestamp:
- 12/02/09 15:48:55 (14 years ago)
- Location:
- branches/azbox/csctapi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/azbox/csctapi/azbox.c
r632 r633 5 5 { 6 6 int n, rfd = -1; 7 u char buf[512];7 unsigned char buf[512]; 8 8 9 9 bzero(buf, sizeof(buf)); … … 32 32 } 33 33 34 int xcas_sc_read(int rfd, u char *buf, int l)34 int xcas_sc_read(int rfd, unsigned char *buf, int l) 35 35 { 36 36 return read(rfd, buf, l); 37 37 } 38 38 39 int xcas_sc_write(int rfd, u char *buf, int l)39 int xcas_sc_write(int rfd, unsigned char *buf, int l) 40 40 { 41 41 return write(rfd, buf, l); 42 42 } 43 43 44 int xcas_sc_get_atr(int rfd, u char *atr)44 int xcas_sc_get_atr(int rfd, unsigned char *atr) 45 45 { 46 46 int n; -
branches/azbox/csctapi/azbox.h
r632 r633 7 7 #include "openxcas/openxcas_smartcard.h" 8 8 9 typedef unsigned char uchar;10 11 9 int xcas_sc_open(void); 12 int xcas_sc_read(int rfd, u char *buf, int l);13 int xcas_sc_write(int rfd, u char *buf, int l);14 int xcas_sc_get_atr(int rfd, u char *atr);10 int xcas_sc_read(int rfd, unsigned char *buf, int l); 11 int xcas_sc_write(int rfd, unsigned char *buf, int l); 12 int xcas_sc_get_atr(int rfd, unsigned char *atr); 15 13 int xcas_sc_close(int rfd); 16 14
Note:
See TracChangeset
for help on using the changeset viewer.