On 10 October 2010 10:54, Ivan Voras <ivo...@freebsd.org> wrote:
> On 9 October 2010 22:20, Andrey V. Elsukov <a...@freebsd.org> wrote:
>> Author: ae
>> Date: Sat Oct  9 20:20:27 2010
>> New Revision: 213662
>> URL: http://svn.freebsd.org/changeset/base/213662
>>
>> Log:
>>  Replace strlen(_PATH_DEV) with sizeof(_PATH_DEV) - 1.
>
> Um, this looks like a pointless change and for the worse; Even at -O1
> the compiler will reduce strlen(constant) to just its result and for
> code like printf("%d\n", sizeof("1234567")) produce code like:
                               ^^^^^
should be strlen(), of course :)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to