[haiku-commits] haiku: hrev44802 - src/system/kernel/fs

  • From: clemens.zeidler@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 7 Nov 2012 21:46:05 +0100 (CET)

hrev44802 adds 1 changeset to branch 'master'
old head: 71d45a0f7617c453858d6aceff57c27c156d074e
new head: 9abf4591d5b44b2e3e52190c2b2a427a81be2691

----------------------------------------------------------------------------

9abf459: Ok there are some more, thanks Rene.

                                     [ czeidler <haiku@xxxxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44802
Commit:      9abf4591d5b44b2e3e52190c2b2a427a81be2691
URL:         http://cgit.haiku-os.org/haiku/commit/?id=9abf459
Author:      czeidler <haiku@xxxxxxxxxxxxxxxxxx>
Date:        Wed Nov  7 20:45:43 2012 UTC

----------------------------------------------------------------------------

1 file changed, 10 insertions(+), 10 deletions(-)
src/system/kernel/fs/KPath.cpp | 20 ++++++++++----------

----------------------------------------------------------------------------

diff --git a/src/system/kernel/fs/KPath.cpp b/src/system/kernel/fs/KPath.cpp
index 021bcc8..2de6ae2 100644
--- a/src/system/kernel/fs/KPath.cpp
+++ b/src/system/kernel/fs/KPath.cpp
@@ -107,12 +107,12 @@ KPath::InitCheck() const
 
 
 status_t
-KPath::SetPath(const char *path, bool normalize, bool traverseLeafLink)
+KPath::SetPath(const char* path, bool normalize, bool traverseLeafLink)
 {
-       if (!fBuffer)
+       if (fBuffer == NULL)
                return B_NO_INIT;
 
-       if (path) {
+       if (path != NULL) {
                if (normalize) {
                        // normalize path
                        status_t error = vfs_normalize_path(path, fBuffer, 
fBufferSize,
@@ -148,10 +148,10 @@ KPath::Path() const
 }
 
 
-char *
+char*
 KPath::LockBuffer()
 {
-       if (!fBuffer || fLocked)
+       if (fBuffer == NULL || fLocked)
                return NULL;
 
        fLocked = true;
@@ -214,7 +214,7 @@ KPath::Leaf() const
 status_t
 KPath::ReplaceLeaf(const char* newLeaf)
 {
-       const char *leaf = Leaf();
+       const char* leaf = Leaf();
        if (!leaf)
                return B_NO_INIT;
 
@@ -237,7 +237,7 @@ bool
 KPath::RemoveLeaf()
 {
        // get the leaf -- bail out, if not initialized or only the "/" is left
-       const char *leaf = Leaf();
+       const char* leaf = Leaf();
        if (!leaf || leaf == fBuffer)
                return false;
 
@@ -252,12 +252,12 @@ KPath::RemoveLeaf()
 
 
 status_t
-KPath::Append(const char *component, bool isComponent)
+KPath::Append(const char* component, bool isComponent)
 {
        // check initialization and parameter
-       if (!fBuffer)
+       if (fBuffer == NULL)
                return B_NO_INIT;
-       if (!component)
+       if (component == NULL)
                return B_BAD_VALUE;
        if (fPathLength == 0)
                return SetPath(component);


Other related posts:

  • » [haiku-commits] haiku: hrev44802 - src/system/kernel/fs - clemens . zeidler