Author: mmu_man Date: 2011-10-31 21:39:57 +0100 (Mon, 31 Oct 2011) New Revision: 43039 Changeset: https://dev.haiku-os.org/changeset/43039 Modified: haiku/trunk/src/add-ons/kernel/file_systems/bfs/Volume.cpp Log: Abide by the Coding Style Police. Modified: haiku/trunk/src/add-ons/kernel/file_systems/bfs/Volume.cpp =================================================================== --- haiku/trunk/src/add-ons/kernel/file_systems/bfs/Volume.cpp 2011-10-31 20:14:16 UTC (rev 43038) +++ haiku/trunk/src/add-ons/kernel/file_systems/bfs/Volume.cpp 2011-10-31 20:39:57 UTC (rev 43039) @@ -6,12 +6,12 @@ //! super block, mounting, etc. +#include "Attribute.h" #include "Debug.h" -#include "Volume.h" -#include "Journal.h" #include "Inode.h" -#include "Attribute.h" +#include "Journal.h" #include "Query.h" +#include "Volume.h" static const int32 kDesiredAllocationGroups = 56; @@ -412,14 +412,11 @@ } else { // we don't use the vnode layer to access the indices node } - - } else - { + } else { FATAL(("could not create root node: publish_vnode() failed!\n")); delete fRootNode; return status; - } - + } } else { status = B_BAD_VALUE; FATAL(("could not create root node!\n")); @@ -428,7 +425,7 @@ if (!(fFlags & VOLUME_READ_ONLY)) { Attribute attr(fRootNode); - if (attr.Get ("be:volume_id") == B_ENTRY_NOT_FOUND) + if (attr.Get("be:volume_id") == B_ENTRY_NOT_FOUND) CreateVolumeID(); } @@ -526,11 +523,11 @@ seeded = true; } uint64_t id; - size_t len = sizeof (id); - id = ((uint64_t) rand () << 32) | rand (); + size_t length = sizeof(id); + id = ((uint64_t)rand() << 32) | rand(); Transaction transaction(this, fRootNode->BlockNumber()); fRootNode->WriteLockInTransaction(transaction); - attr.Write(transaction, cookie, 0, (uint8_t *) &id, &len, NULL); + attr.Write(transaction, cookie, 0, (uint8_t *)&id, &length, NULL); transaction.Done(); } return status;