Changeset 587
- Timestamp:
- 12/01/09 08:53:40 (14 years ago)
- Location:
- branches/cccam-test
- Files:
-
- 10 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/cccam-test/csctapi/io_serial.c
r567 r587 501 501 { 502 502 struct termios newtio; 503 unsigned int modembits;504 503 505 504 #ifdef SCI_DEV … … 1072 1071 struct termios term; 1073 1072 struct termios orig; 1074 unsigned int u;1075 1073 unsigned char fi_di[4]={0x01, 0x01, 0x74, 0x01}; 1076 1074 unsigned char fr[3]={0x02, 0x00, 0x00}; -
branches/cccam-test/module-camd35.c
r473 r587 52 52 static int camd35_recv(uchar *buf, int l) 53 53 { 54 int rc, n, s, rs;54 int rc, s, rs, n=0; 55 55 unsigned char recrc[4]; 56 56 for (rc=rs=s=0; !rc; s++) switch(s) … … 464 464 int i; 465 465 uchar buf[512], *ptr, *ptr2; 466 ushort idx ;466 ushort idx=0; 467 467 if (!logfd) return(-1); 468 468 if ((i=recv(logfd, buf, sizeof(buf), 0))<=0) return(-1); -
branches/cccam-test/module-newcamd.c
r470 r587 639 639 uchar *key=0; 640 640 uint8 *passwdcrypt = NULL; 641 int au ;641 int au=0; 642 642 643 643 // make random 14 bytes -
branches/cccam-test/module-serial.c
r70 r587 560 560 static void oscam_ser_auth_client(int proto) 561 561 { 562 int ok ;562 int ok=0; 563 563 // After reload base account ptrs may be placed in other address, 564 564 // and we may can't find it in this process. -
branches/cccam-test/oscam-ac.c
r21 r587 47 47 void ac_do_stat() 48 48 { 49 int i, j, idx, exceeds, maxval, prev_deny ;49 int i, j, idx, exceeds, maxval, prev_deny=0; 50 50 int cl_idx; 51 51 -
branches/cccam-test/oscam-config.c
r571 r587 831 831 } 832 832 833 static ushort *chk_entry4sidtab(char *value, struct s_sidtab *sidtab, int what)833 static void chk_entry4sidtab(char *value, struct s_sidtab *sidtab, int what) 834 834 { 835 835 int i, b; … … 846 846 if (!errno) i++; 847 847 } 848 if (!i) return(0);848 //if (!i) return(0); 849 849 if (b==sizeof(ushort)) 850 850 slist=malloc(i*sizeof(ushort)); -
branches/cccam-test/oscam-reader.c
r571 r587 21 21 void cs_ri_log(char *fmt,...) 22 22 { 23 int val;24 23 char txt[256]; 25 24 … … 30 29 cs_log("%s", txt); 31 30 #ifdef CS_RDR_INIT_HIST 31 int val; 32 32 val=sizeof(reader[ridx].init_history)-reader[ridx].init_history_pos-1; 33 33 if (val>0) -
branches/cccam-test/oscam-simples.c
r70 r587 206 206 in_addr_t cs_inet_addr(char *txt) 207 207 { 208 in_addr_t n;209 208 if (!inet_byteorder) 210 209 inet_byteorder=((inet_addr("1.2.3.4")+1)==inet_addr("1.2.3.5")) ? 1 : 2; 211 switch (inet_byteorder) 212 { 213 case 1: 214 n=inet_addr(txt); 215 break; 216 case 2: 217 n=inet_network(txt); 218 break; 219 } 220 return(n); 210 if (inet_byteorder == 1) 211 return(inet_addr(txt)); 212 else 213 return(inet_network(txt)); 221 214 } 222 215 … … 231 224 case 4: 232 225 return ((b[0]<<24) | (b[1]<<16) | (b[2]<<8) | b[3]); 233 } 226 default: 227 cs_log("Error in b2i, n=%i",n); 228 } 229 return 0; 234 230 } 235 231 -
branches/cccam-test/oscam.c
r571 r587 447 447 #ifdef CS_ANTICASC 448 448 char usr[32]; 449 ushort ac_idx ;450 ushort ac_limit ;451 uchar ac_penalty ;449 ushort ac_idx=0; 450 ushort ac_limit=0; 451 uchar ac_penalty=0; 452 452 if( cfg->ac_enabled ) 453 453 { … … 836 836 } 837 837 838 static void *cs_client_resolve(void *dummy)838 static void cs_client_resolve(void *dummy) 839 839 { 840 840 while (1) … … 865 865 pthread_t tid; 866 866 867 if (i=pthread_create(&tid, (pthread_attr_t *)0, cs_client_resolve, (void *) 0))867 if (i=pthread_create(&tid, (pthread_attr_t *)0, (void *)&cs_client_resolve, (void *) 0)) 868 868 cs_log("ERROR: can't create resolver-thread (err=%d)", i); 869 869 else … … 896 896 897 897 #ifdef USE_PTHREAD 898 static void *cs_logger(void *dummy)898 static void cs_logger(void *dummy) 899 899 #else 900 900 static void cs_logger(void) … … 936 936 #ifdef USE_PTHREAD 937 937 pthread_t tid; 938 if (i=pthread_create(&tid, (pthread_attr_t *)0, cs_logger, (void *) 0))938 if (i=pthread_create(&tid, (pthread_attr_t *)0, (void *) &cs_logger, (void *) 0)) 939 939 cs_log("ERROR: can't create logging-thread (err=%d)", i); 940 940 else … … 1443 1443 return(write_ecm_request(fd, er)); 1444 1444 } 1445 1445 /* 1446 1446 static int cs_read_timer(int fd, uchar *buf, int l, int msec) 1447 1447 { … … 1464 1464 1465 1465 return(rc); 1466 } 1466 }*/ 1467 1467 1468 1468 ECM_REQUEST *get_ecmtask() -
branches/cccam-test/reader-videoguard2.c
r561 r587 76 76 unsigned char counter=0,counter2=0; 77 77 int tmp1; 78 int a,h,j,k,l,m = 0;78 int h,j,k,l,m = 0; 79 79 int i; 80 80 … … 754 754 } 755 755 756 short int SWIRDstatus = cta_res[1];756 //short int SWIRDstatus = cta_res[1]; 757 757 unsigned char ins58[5] = { 0xD0,0x58,0x00,0x00,0x00 }; 758 758 l=do_cmd(ins58, NULL, buff);
Note:
See TracChangeset
for help on using the changeset viewer.