Re: [PATCH v8 1/5] dir_iterator: add tests for dir_iterator API
- From
Stefan Beller <sbeller@google.com>
- Date
- Apr 13, 2017, 00:42 UTC
- Message-ID
- <CAGZ79kaH0ihJ-zFX5zdK-av0Aqxi1ebCEqj5smb2Zu9pKRG8oA@mail.gmail.com>
- In-Reply-To
- <1491442767-54068-2-git-send-email-bnmvco@gmail.com>
On Wed, Apr 5, 2017 at 6:39 PM, Daniel Ferreira <bnmvco@gmail.com> wrote:
> +int cmd_main(int argc, const char **argv) {Style (minor nit, in case resend is needed):
We only put the { brace on the same line for statements (if, for, while, switch), not for function declarations.
I tried to find a good rationale for it, this is the most sufficient I could find https://www.kernel.org/doc/Documentation/process/coding-style.rst (section 3):
Heretic people all over the world have claimed that this inconsistency
is ... well ... inconsistent, but all right-thinking people know that
(a) K&R are **right** and (b) K&R are right. Besides, functions are
special anyway (you can't nest them in C).