Changeset 1238
- Timestamp:
- 01/15/10 19:44:41 (14 years ago)
- Location:
- branches/monitor-improvement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/monitor-improvement/oscam-config.c
r1232 r1238 1414 1414 int l; 1415 1415 void *ptr; 1416 if ((l=strlen(trim(token))) < 6) continue; 1416 char *tmp; 1417 tmp = trim(token); 1418 1419 if (tmp[0] == '#') continue; 1420 if ((l=strlen(tmp)) < 6) continue; 1417 1421 if (!(payload=strchr(token, '|'))) continue; 1418 1422 *payload++ = '\0'; 1419 //if (strlen(token)!=4) continue;1420 1423 1421 1424 if (!(ptr = malloc(sizeof(struct s_srvid)))) { -
branches/monitor-improvement/oscam-http.c
r1233 r1238 989 989 int j, found = 0; 990 990 struct s_srvid *srvid = cfg->srvid; 991 while ((srvid = srvid->next) && (srvid->next != NULL)){ 992 if (srvid->srvid == client[i].last_srvid){ 993 for (j=0; j < srvid->ncaid; j++){ 994 if (srvid->caid[j] == client[i].last_caid){ 995 found = 1; 996 break; 991 if (srvid){ 992 while ((srvid = srvid->next) && (srvid->next != NULL)){ 993 if (srvid->srvid == client[i].last_srvid){ 994 for (j=0; j < srvid->ncaid; j++){ 995 if (srvid->caid[j] == client[i].last_caid){ 996 found = 1; 997 break; 998 } 997 999 } 998 1000 } 1001 if (found == 1) break; 999 1002 } 1000 if (found == 1) break;1001 1003 } 1002 1004 if (found == 1){
Note:
See TracChangeset
for help on using the changeset viewer.