[Devel] [PATCH 06/10] get_pagesize(): init var @ declaration and simplify
Igor M Podlesny
openvz at poige.ru
Tue May 7 10:39:39 PDT 2013
On 7 May 2013 20:05, Kir Kolyshkin <kir at openvz.org> wrote:
> On 05/06/2013 11:42 PM, Igor Podlesny wrote:
[...]
> No yoda conditions please. Compiler is smart enough
> to warn if we accidentally use = instead of ==
It would be just a warning, meanwhile using a const as lvalue would
be an error.
(I still see no point to forbid that precautions technique.)
>
>
>> logger(-1, errno, "Unable to get page size");
>> - return -1;
>> }
>> return pagesize;
>> }
>
>
--
More information about the Devel
mailing list