Changeset 1029


Ignore:
Timestamp:
01/02/10 11:01:11 (12 years ago)
Author:
alno
Message:

WebIF: fixed compiler warnings if CS_RDR_INIT_HIST is not set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-http.c

    r1028 r1029  
    106106    tpl_printf(vars, 0, "PASSIVE", "%d",  cfg->c33_passive);
    107107
    108     for (i = 0; i < sizeof(cfg->c33_key); ++i) tpl_printf(vars, 1, "KEY", "%02X",cfg->c33_key[i]);     
     108    for (i = 0; i < sizeof(cfg->c33_key); ++i) tpl_printf(vars, 1, "KEY", "%02X",cfg->c33_key[i]);
    109109      struct s_ip *cip;
    110110      char *dot="";
     
    149149        tpl_addVar(vars, 1, "MESSAGE", "<BR><BR><B>Configuration newcamd *DONE*</B><BR><BR>");
    150150        refresh_oscam(REFR_SERVER);
    151     } 
     151    }
    152152        int j;
    153153        char *dot1, *dot2;
     
    185185        tpl_addVar(vars, 1, "MESSAGE", "<BR><BR><B>Configuration Radegast *DONE*</B><BR><BR>");
    186186        refresh_oscam(REFR_SERVER);
    187     }   
     187    }
    188188    tpl_printf(vars, 0, "PORT", "%d", cfg->rad_port);
    189189    tpl_addVar(vars, 0, "SERVERIP", inet_ntoa(*(struct in_addr *)&cfg->rad_srvip));
     
    265265    tpl_addVar(vars, 0, "HTTPCSS", cfg->http_css);
    266266    tpl_printf(vars, 0, "HTTPREFRESH", "%d", cfg->http_refresh);
    267     tpl_addVar(vars, 0, "HTTPTPL", cfg->http_tpl); 
     267    tpl_addVar(vars, 0, "HTTPTPL", cfg->http_tpl);
    268268
    269269      struct s_ip *cip;
     
    278278    tpl_printf(vars, 0, "TMP", "MONSELECTED%d", cfg->mon_level);
    279279    tpl_addVar(vars, 0, tpl_getVar(vars, "TMP"), "selected");
    280    
     280
    281281    fputs(tpl_getTpl(vars, "CONFIGMONITOR"), f);
    282282}
     
    667667void send_oscam_entitlement(struct templatevars *vars, FILE *f, struct uriparams *params) {
    668668  /* build entitlements from reader init history */
     669#ifdef CS_RDR_INIT_HIST
    669670    int ridx;
    670671    char *p;
    671672    char *reader_ = getParam(params, "reader");
    672673    if(strlen(reader_) > 0){
    673 #ifdef CS_RDR_INIT_HIST
    674674        for (ridx=0; ridx<CS_MAXREADER && strcmp(reader_, reader[ridx].label) != 0; ridx++);
    675675        if(ridx<CS_MAXREADER){
     
    678678            }
    679679        }
     680        tpl_addVar(vars, 0, "READERNAME", reader_);
    680681#else
    681682        tpl_addVar(vars, 0, "LOGHISTORY", "The flag CS_RDR_INIT_HIST is not set in your binary<BR>\n");
    682683#endif
    683         tpl_addVar(vars, 0, "READERNAME", reader_);
    684684    }
    685685    fputs(tpl_getTpl(vars, "ENTITLEMENTS"), f);
     
    730730            tpl_printf(vars, 0, "CLIENTIDLESECS", "%d", isec);
    731731            tpl_printf(vars, 0, "CLIENTCON", "%d", con);
    732                 tpl_printf(vars, 0, "CWOK", "%d", client[i].cwfound);
    733                 tpl_printf(vars, 0, "CWNOK", "%d", client[i].cwnot);
     732            tpl_printf(vars, 0, "CWOK", "%d", client[i].cwfound);
     733            tpl_printf(vars, 0, "CWNOK", "%d", client[i].cwnot);
    734734            tpl_addVar(vars, 1, "CLIENTSTATUS", tpl_getTpl(vars, "CLIENTSTATUSBIT"));
    735735        }
Note: See TracChangeset for help on using the changeset viewer.