Re: [PATCH BlueZ 2/4 v2] core: Add DisableProfiles entry to main.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Luiz,

On Mon, Mar 4, 2013 at 9:58 AM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> +               if (g_pattern_match_simple(blacklist[i], profile->name) == 0)
> +                       return -EPROTONOSUPPORT;

g_pattern_match_simple() returns gboolean so IMHO it is more readable
if you use "== FALSE" or simply "if (!g_pattern_match_simple(...))"
above.

> +
> +               if (profile->local_uuid != NULL && strcasecmp(blacklist[i],
> +                                               profile->local_uuid) == 0)
> +                       return -EPROTONOSUPPORT;
> +
> +               if (profile->remote_uuids == NULL)
> +                       continue;
> +
> +               if (strcasecmp(blacklist[i], profile->remote_uuids[0]) == 0)
> +                       return -EPROTONOSUPPORT;
> +       }
> +
> +done:
>         profiles = g_slist_append(profiles, profile);
>         return 0;
>  }

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux