}
}
-static int compare_discovery_sender(gconstpointer a, gconstpointer b)
+static int compare_sender(gconstpointer a, gconstpointer b)
{
const struct watch_client *client = a;
const char *sender = b;
* already started a discovery then return an error.
*/
list = g_slist_find_custom(adapter->discovery_list, sender,
- compare_discovery_sender);
+ compare_sender);
if (list)
return btd_error_busy(msg);
return btd_error_not_ready(msg);
list = g_slist_find_custom(adapter->discovery_list, sender,
- compare_discovery_sender);
+ compare_sender);
if (!list)
return btd_error_failed(msg, "No discovery started");