Applied patch by Vasilis - thanks!

* fixed compilation warnings in Node.h and NodeRef.h.
* Added license header to NodeRef.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24394 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-03-15 10:45:53 +00:00
parent fae99f156e
commit b921611458
2 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007, Haiku, Inc. All Rights Reserved.
* Copyright 2002-2008, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _NODE_H
@@ -27,8 +27,8 @@ struct node_ref {
bool operator<(const node_ref &ref) const
{
return (device < ref.device
|| device == ref.device && node < ref.node);
return device < ref.device
|| (device == ref.device && node < ref.node);
}
dev_t device;
+5 -1
View File
@@ -1,3 +1,7 @@
/*
* Copyright 2005-2008, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef NODE_REF_H
#define NODE_REF_H
@@ -47,7 +51,7 @@ struct NodeRef {
bool operator<(const NodeRef &other) const
{
return (device < other.device
|| device == other.device && node < other.node);
|| (device == other.device && node < other.node));
}
};