[haiku-commits] Re: haiku: hrev46509 - src/system/kernel/fs

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 08 Dec 2013 15:16:24 +0100

On 12/08/2013 03:07 PM, Axel Dörfler wrote:
Am 08/12/2013 11:36, schrieb revol@xxxxxxx:
+    for (size_t i = 0;
+        i < vecCount && subRequestCount < kMaxSubRequests && error ==
B_OK;
+        i++) {
          off_t vecOffset = vecs[i].offset;

This looks incorrectly indented. The contents of the for() should be
indented two tabs, not just one.

While I would prefer it that way, too, so far we have indented "if" and "while" conditions and "for" statements only one additional level, unless some subexpression was wrapped. The coding guidelines don't offer any "for" example, but some for "if" which work that way.

CU, Ingo


Other related posts: