fix compiler error
authorMike Baker <mbm@openwrt.org>
Sat, 25 Mar 2006 12:36:44 +0000 (12:36 +0000)
committerMike Baker <mbm@openwrt.org>
Sat, 25 Mar 2006 12:36:44 +0000 (12:36 +0000)
SVN-Revision: 3480

openwrt/package/wificonf/wificonf.c

index d0f9299d90b2ad161506fe71963eee78ad0feaed..f1a787402d582032cd432804cf2ab29805db965a 100644 (file)
@@ -406,7 +406,7 @@ static void setup_bcom(int skfd, char *ifname)
                val = strtol(v,NULL,0);
                bcom_ioctl(skfd, ifname, WLC_SET_FRAG, &val, sizeof(val));
        }
-       if ((val = strtol(nvram_safe_get(wl_var("rate")))) > 0,NULL,0) {
+       if ((val = strtol(nvram_safe_get(wl_var("rate")),NULL,0)) > 0) {
                val /= 500000;
                bcom_ioctl(skfd, ifname, WLC_SET_RATE, &val, sizeof(val));
        }
@@ -630,7 +630,7 @@ static void setup_wext_wep(int skfd, char *ifname)
        }
 }
 
-static void set_wext_mode(skfd, ifname)
+static void set_wext_mode(int skfd, char *ifname)
 {
        struct iwreq wrq;
        int ap = 0, infra = 0, wet = 0;