Changeset 4624 for trunk/module-cccam.c
- Timestamp:
- 01/26/11 18:38:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r4617 r4624 672 672 673 673 //check for already pending: 674 //if (((struct cc_data*)cl->cc)->extended_mode) {675 //int j,found;676 //for (found=j=0;j<CS_MAXPENDING;j++) {677 //if (i!=j && cl->ecmtask[j].rc == 101 &&678 //cl->ecmtask[i].caid==cl->ecmtask[j].caid &&679 //cl->ecmtask[i].ecmd5==cl->ecmtask[j].ecmd5) {680 //found=1;681 //break;682 //}683 //}684 //if (!found)685 //n = i;686 //}687 //else674 if (((struct cc_data*)cl->cc)->extended_mode) { 675 int j,found; 676 for (found=j=0;j<CS_MAXPENDING;j++) { 677 if (i!=j && cl->ecmtask[j].rc == 101 && 678 cl->ecmtask[i].caid==cl->ecmtask[j].caid && 679 cl->ecmtask[i].ecmd5==cl->ecmtask[j].ecmd5) { 680 found=1; 681 break; 682 } 683 } 684 if (!found) 685 n = i; 686 } 687 else 688 688 n = i; 689 689 } … … 2131 2131 struct cc_extended_ecm_idx *eei = get_extended_ecm_idx(cl, 2132 2132 cc->extended_mode ? cc->g_flag : 1, TRUE); 2133 if ( eei == NULL) {2133 if (!eei) { 2134 2134 cs_debug_mask(D_READER, "%s received extended ecm id %d but not found!", 2135 2135 getprefix(), cc->g_flag); … … 3547 3547 && comp_timeb(&cur_time, &timeout) > 0; 3548 3548 3549 if (needs_card_updates ) {3549 if (needs_card_updates || !cc->cards_modified) { 3550 3550 cc->ecm_time = cur_time; 3551 3551 ulong new_hexserial_crc = get_reader_hexserial_crc(cl); … … 3938 3938 ph->recv = cc_recv; 3939 3939 ph->cleanup = cc_cleanup; 3940 ph->multi = 1; 3940 3941 ph->c_multi = 1; 3941 3942 ph->c_init = cc_cli_init;
Note:
See TracChangeset
for help on using the changeset viewer.