From 701c4b84bb1d0066e5124f0b5755a1c3657caf28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 31 Oct 2011 20:39:57 +0000 Subject: [PATCH] Abide by the Coding Style Police. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43039 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/file_systems/bfs/Volume.cpp | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Volume.cpp b/src/add-ons/kernel/file_systems/bfs/Volume.cpp index 22619861d4..874511268d 100644 --- a/src/add-ons/kernel/file_systems/bfs/Volume.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Volume.cpp @@ -6,12 +6,12 @@ //! super block, mounting, etc. -#include "Debug.h" -#include "Volume.h" -#include "Journal.h" -#include "Inode.h" #include "Attribute.h" +#include "Debug.h" +#include "Inode.h" +#include "Journal.h" #include "Query.h" +#include "Volume.h" static const int32 kDesiredAllocationGroups = 56; @@ -412,14 +412,11 @@ Volume::Mount(const char* deviceName, uint32 flags) } 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 @@ Volume::Mount(const char* deviceName, uint32 flags) 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 @@ Volume::CreateVolumeID() 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;