/* show only specified file */
if (!p->defaultiface) {
- showoneinterface(p, p->interface);
+ showoneinterface(p);
return;
}
jsonfooter();
}
- /* show in qmode if there's only one file or qmode!=0 */
+ /* show in qmode if there's only one interface or qmode!=0 */
} else {
- showoneinterface(p, p->interface);
+ showoneinterface(p);
}
}
-void showoneinterface(PARAMS *p, const char *interface)
+void showoneinterface(PARAMS *p)
{
if (!db_getinterfacecountbyname(p->interface)) {
if (strchr(p->interface, '+') == NULL) {
}
}
if (cfg.qmode != 8 && cfg.qmode != 10) {
- showdb(interface, cfg.qmode, p->databegin, p->dataend);
+ showdb(p->interface, cfg.qmode, p->databegin, p->dataend);
} else if (cfg.qmode == 8) {
xmlheader();
showxml(p->interface, p->xmlmode, p->databegin, p->dataend);
void handleaddinterface(PARAMS *p);
void handlesetalias(PARAMS *p);
void handleshowdata(PARAMS *p);
-void showoneinterface(PARAMS *p, const char *interface);
+void showoneinterface(PARAMS *p);
void handletrafficmeters(PARAMS *p);
void handleifselection(PARAMS *p);