diff --git a/src/bin/bfs_tools/lib/Inode.cpp b/src/bin/bfs_tools/lib/Inode.cpp index 7b23916a31..4fab2fd07b 100644 --- a/src/bin/bfs_tools/lib/Inode.cpp +++ b/src/bin/bfs_tools/lib/Inode.cpp @@ -91,7 +91,7 @@ Inode::_Unset() free(fPath); fPath = NULL; - delete fAttributes; + delete fAttributes; fAttributes = NULL; } @@ -522,7 +522,7 @@ Inode::CopyAttributesTo(BNode *node) strerror(written)); } else if ((size_t)written < size) { printf("could only write %ld bytes (from %ld) at attribute \"%s\"\n", - written, size, name); + written, size, name); } } @@ -1075,7 +1075,7 @@ Directory::CopyTo(const char *root, bool fullPath, Inode::Source *source) BPath path(root); if (fullPath && Path(source)) path.Append(Path(source)); - + char *name = (char *)Name(); if (name != NULL) { // changes the filename in the inode buffer (for deleted entries) @@ -1094,7 +1094,7 @@ Directory::CopyTo(const char *root, bool fullPath, Inode::Source *source) BDirectory directory; if ((status = entry.GetParent(&directory)) < B_OK) return status; - + status = directory.CreateDirectory(path.Leaf(), NULL); if (status < B_OK && status != B_FILE_EXISTS) return status; diff --git a/src/bin/bfs_tools/lib/Inode.h b/src/bin/bfs_tools/lib/Inode.h index 3a24a400b4..f06e758585 100644 --- a/src/bin/bfs_tools/lib/Inode.h +++ b/src/bin/bfs_tools/lib/Inode.h @@ -114,7 +114,7 @@ class DataStream : public Inode, public BPositionIO { virtual off_t Position() const; virtual status_t SetSize(off_t size); - + private: int32 fCurrent; int32 fLevel; @@ -156,7 +156,7 @@ class Directory : public DataStream { Directory(Disk *disk, bfs_inode *inode, bool ownBuffer = true); Directory(const Inode &inode); ~Directory(); - + virtual status_t InitCheck(); virtual status_t CopyTo(const char *path, bool fullPath = true, Inode::Source *source = NULL);