[PATCH 1/2] Fix device listing
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 3 Mar 2010 23:30:38 +0000 (23:30 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 3 Mar 2010 23:30:38 +0000 (23:30 +0000)
When iterating over devices in a certain technology, it was using wrong
prop name.

Remove also a trailing space

By: Lucas De Marchi <lucas.demarchi@profusion.mobi>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@46854 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/connman/e_connman_technology.c

index 223d3ec..198b847 100644 (file)
@@ -107,7 +107,7 @@ e_connman_technology_state_get(const E_Connman_Element *technology, const char *
 
 /**
  * Get array of device elements.
- * 
+ *
  * If this property isn't found then 0 is returned.
  * If zero is returned, then this call failed and parameter-returned
  * values shall be considered invalid.
@@ -128,5 +128,5 @@ e_connman_technology_devices_get(const E_Connman_Element *technology, unsigned i
    EINA_SAFETY_ON_NULL_RETURN_VAL(count, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(t_elements, 0);
    return e_connman_element_objects_array_get_stringshared
-     (technology, e_connman_prop_services, count, t_elements);
+     (technology, e_connman_prop_devices, count, t_elements);
 }