Enlightenment CVS committal

Author  : chaos
Project : e_modules
Module  : wlan

Dir     : e_modules/wlan


Modified Files:
        e_mod_config.c e_mod_main.c 


Log Message:
* Sanity checks

===================================================================
RCS file: /cvs/e/e_modules/wlan/e_mod_config.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_mod_config.c      2 Sep 2006 12:23:53 -0000       1.17
+++ e_mod_config.c      2 Sep 2006 12:41:59 -0000       1.18
@@ -75,7 +75,6 @@
          }
        i++;
      }
-   //E_FREE(tmp);
 }
 
 static void *
@@ -145,7 +144,6 @@
             e_widget_framelist_object_append (of, ob);
             i++;
 
-               E_FREE(tmp);
          }
        e_widget_list_object_append (o, of, 1, 1, 0.5);
      }
@@ -170,10 +168,11 @@
        tmp = ecore_list_goto_index(cfdata->devs, cfdata->dev_num);
        if (tmp != NULL) 
          {
-            evas_stringshare_del(ci->device);
+            if (ci->device) evas_stringshare_del(ci->device);
+
             ci->device = evas_stringshare_add(tmp);
+            E_FREE(tmp);
          }
-       E_FREE(tmp);
      }
    
   e_config_save_queue ();
===================================================================
RCS file: /cvs/e/e_modules/wlan/e_mod_main.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- e_mod_main.c        2 Sep 2006 11:04:21 -0000       1.31
+++ e_mod_main.c        2 Sep 2006 12:41:59 -0000       1.32
@@ -441,6 +441,9 @@
    if (!stat)
       return 1;
 
+  inst = data;
+  ci = _wlan_config_item_get (inst->gcc->id);
+   
    while (fgets(buf, 256, stat))
      {
         int i = 0;
@@ -453,8 +456,10 @@
         if (sscanf(buf, "%s %u %u %u %u %u %u %u %u %u %u",
                    iface, &wlan_status, &wlan_link, &wlan_level, &wlan_noise, 
&dummy, &dummy, &dummy, &dummy, &dummy, &dummy) < 11)
            continue;
+
       if (!ci->device)
        continue;
+
       if (!strcmp (iface, ci->device))
        {
          found_dev = 1;
@@ -468,9 +473,6 @@
 
   snprintf(in_str, sizeof(in_str), "LNK: %d%%", wlan_link);
 
-  inst = data;
-  ci = _wlan_config_item_get (inst->gcc->id);
-
    double link_send = ((double)wlan_link / (double)100.0);
    double level_send = ((double)wlan_level / (double)100.0);
 
@@ -478,6 +480,7 @@
   _wlan_update_level (inst, level_send);
   
    snprintf(omsg,sizeof(omsg),"Qual: %d%%", wlan_link);
+   
    edje_object_signal_emit(inst->wlan_obj, "label_active", "");
    edje_object_part_text_set(inst->wlan_obj, "qual_label", omsg);
 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to