<p dir="ltr"><br>
On Aug 2, 2013 5:02 AM, "Tanu Kaskinen" <<a href="mailto:tanu.kaskinen@linux.intel.com">tanu.kaskinen@linux.intel.com</a>> wrote:<br>
><br>
> On Fri, 2013-08-02 at 08:44 +0200, Thomas Martitz wrote:<br>
> > Am 02.08.2013 02:10, schrieb João Paulo Rechi Vita:<br>
> > > On Fri, Jul 19, 2013 at 7:24 AM, Tanu Kaskinen<br>
> > > <<a href="mailto:tanu.kaskinen@linux.intel.com">tanu.kaskinen@linux.intel.com</a>> wrote:<br>
> > >> (Sorry, I sent the previous mail too early. I hadn't yet finished<br>
> > >> reviewing this patch.)<br>
> > >><br>
> > >> On Fri, 2013-07-12 at 15:06 -0300, <a href="mailto:jprvita@gmail.com">jprvita@gmail.com</a> wrote:<br>
> > >>> +<br>
> > >>> + if (strcasecmp(key, "UUID") == 0) {<br>
> > >> What is the reason to use strcasecmp() instead of pa_streq()?<br>
> > >><br>
> > > This was copied from previous code, I'm changing it to pa_streq.<br>
> ><br>
> ><br>
> > Not sure if it matters here but pa_streq() doesn't ignore the case in<br>
> > contrast to strcasecmp(). So it's not completely equivalent.<br>
><br>
> Yes, I asked what the reason is because there could be some reason, but<br>
> there probably isn't. The only possible reason that I can see would be<br>
> that BlueZ wants to reserve the right to change the case of the<br>
> properties at will. I really hope they don't want to do that.<br>
></p>
<p dir="ltr">Sorry I haven't been clear enough: there is no need to ignore case here, so it makes sense to use pa_streq(). The reason strcasecmp() was used in the first patch is that this piece of code was moved from somewhere else, and strcasecmp() was used there originally. </p>
<p dir="ltr">--<br>
João Paulo Rechi Vita<br>
<a href="http://about.me/jprvita">http://about.me/jprvita</a></p>