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:
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user