Hi Tomasz,

On 07/09/2014 02:36 PM, Tomasz Bursztyka wrote:
> +bool g_supplicant_peer_is_in_a_group(GSupplicantPeer *peer)
> +{
> +     if (!peer)
> +             return false;
> +
> +     return (g_slist_length(peer->groups) > 0);

'return !peer->groups' would avoid the counting.

cheers,
daniel
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to