- Timestamp:
- 05/25/07 21:05:16 (5 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
-
ct/client.c (modified) (2 diffs)
-
ct/socket.c (modified) (1 diff)
-
ct/status.c (modified) (4 diffs)
-
pcsc/pcsc.c (modified) (1 diff)
-
tools/openct-control.c (modified) (2 diffs)
-
tools/openct-tool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ct/client.c
r944 r963 67 67 68 68 snprintf(file, PATH_MAX, "%d", reader); 69 if (! ct_format_path(path, PATH_MAX, file)) {69 if (!ct_format_path(path, PATH_MAX, file)) { 70 70 return NULL; 71 71 } … … 452 452 } 453 453 454 static void ct_args_opaque(ct_buf_t * bp, ifd_tag_t tag, const unsigned char *value,455 size_t len)454 static void ct_args_opaque(ct_buf_t * bp, ifd_tag_t tag, 455 const unsigned char *value, size_t len) 456 456 { 457 457 ct_tlv_builder_t builder; -
trunk/src/ct/socket.c
r945 r963 534 534 } 535 535 536 retry: 536 retry: 537 537 n = read(sock->fd, ct_buf_tail(bp), count); 538 538 if (n < 0 && errno == EINTR) -
trunk/src/ct/status.c
r945 r963 34 34 char status_path[PATH_MAX]; 35 35 36 if (! ct_format_path(status_path, PATH_MAX, "status")) {36 if (!ct_format_path(status_path, PATH_MAX, "status")) { 37 37 return NULL; 38 38 } 39 39 40 40 if ((fd = open(status_path, flags)) < 0) { 41 ct_error("can't open %s: %s", 42 status_path, strerror(errno)); 41 ct_error("can't open %s: %s", status_path, strerror(errno)); 43 42 return NULL; 44 43 } … … 65 64 char status_path[PATH_MAX]; 66 65 67 if (! ct_format_path(status_path, PATH_MAX, "status")) {66 if (!ct_format_path(status_path, PATH_MAX, "status")) { 68 67 return -1; 69 68 } … … 180 179 char status_temp_path[PATH_MAX]; 181 180 182 if (! ct_format_path(status_lock_path, PATH_MAX, "status.lock")) {181 if (!ct_format_path(status_lock_path, PATH_MAX, "status.lock")) { 183 182 return -1; 184 183 } … … 207 206 char status_lock_path[PATH_MAX]; 208 207 209 if (! ct_format_path(status_lock_path, PATH_MAX, "status.lock")) {208 if (!ct_format_path(status_lock_path, PATH_MAX, "status.lock")) { 210 209 return; 211 210 } -
trunk/src/pcsc/pcsc.c
r937 r963 476 476 477 477 RESPONSECODE IFDHControl(DWORD Lun, DWORD dwControlCode, 478 PUCHAR TxBuffer, DWORD TxLength, PUCHAR RxBuffer, DWORD RxLength,479 PDWORD pdwBytesReturned)480 { 481 /* FIXME */478 PUCHAR TxBuffer, DWORD TxLength, PUCHAR RxBuffer, 479 DWORD RxLength, PDWORD pdwBytesReturned) 480 { 481 /* FIXME */ 482 482 } 483 483 -
trunk/src/tools/openct-control.c
r951 r963 175 175 ifd_init(); 176 176 177 typedev = malloc(strlen(type) +strlen(device)+2);177 typedev = malloc(strlen(type) + strlen(device) + 2); 178 178 if (!typedev) { 179 179 fprintf(stderr, "out of memory\n"); 180 180 return 1; 181 181 } 182 sprintf(typedev, "%s:%s",type,device);183 184 if (strncmp(type, driver,strlen(type)) == 0) {182 sprintf(typedev, "%s:%s", type, device); 183 184 if (strncmp(type, driver, strlen(type)) == 0) { 185 185 /* detect what kind of devide we have */ 186 186 … … 266 266 267 267 if (ifd_conf_node_get_string(cf, "driver", &driver) < 0) { 268 ct_error("no driver specified in reader configuration for device %s", device); 268 ct_error 269 ("no driver specified in reader configuration for device %s", 270 device); 269 271 return; 270 272 } -
trunk/src/tools/openct-tool.c
r951 r963 272 272 } 273 273 274 static void do_read_memory(ct_handle * h, unsigned int address, unsigned int count) 274 static void do_read_memory(ct_handle * h, unsigned int address, 275 unsigned int count) 275 276 { 276 277 unsigned char buffer[8192];
Note: See TracChangeset
for help on using the changeset viewer.
