Changeset 31411


Ignore:
Timestamp:
Feb 15, 2017, 9:48:46 PM (4 months ago)
Author:
brainslayer
Message:

format code

Location:
src/router/httpd/visuals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/visuals/ejs.c

    r31409 r31411  
    23362336        char *ifname = nvram_safe_get("wifi_display");
    23372337        if (has_ad(ifname))
    2338             ifname = "ath2";
     2338                ifname = "ath2";
    23392339        sprintf(ssid, "%s_ssid", ifname);
    2340         fprintf(stderr, "get ssid from %s = %s\n",ssid,nvram_safe_get(ssid));
    23412340        tf_webWriteESCNV(wp, ssid);
    23422341
    2343 } void ej_getwirelessmode(webs_t wp, int argc, char_t ** argv)
     2342}
     2343
     2344void ej_getwirelessmode(webs_t wp, int argc, char_t ** argv)
    23442345{
    23452346        char mode[32];
     
    23472348        char *ifname = nvram_safe_get("wifi_display");
    23482349        if (has_ad(ifname))
    2349             ifname = "ath2";
     2350                ifname = "ath2";
    23502351        sprintf(mode, "%s_mode", ifname);
    23512352
     
    23782379        char *ifname = nvram_safe_get("wifi_display");
    23792380        if (has_ad(ifname))
    2380             ifname = "ath2";
     2381                ifname = "ath2";
    23812382        strncpy(m, ifname, 4);
    23822383        m[4] = 0;
  • src/router/httpd/visuals/status.c

    r31410 r31411  
    383383        char *ifname = nvram_safe_get("wifi_display");
    384384        if (has_ad(ifname))
    385             ifname = "ath2";
     385                ifname = "ath2";
    386386        sprintf(wifmac, "%s_hwaddr", ifname);
    387387
Note: See TracChangeset for help on using the changeset viewer.