From b9216114582a30e823cb796cb940149f9e846663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 15 Mar 2008 10:45:53 +0000 Subject: [PATCH] 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 --- headers/build/os/storage/Node.h | 6 +++--- src/build/libroot/NodeRef.h | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/headers/build/os/storage/Node.h b/headers/build/os/storage/Node.h index 39b21dce71..67dfc8dd1f 100644 --- a/headers/build/os/storage/Node.h +++ b/headers/build/os/storage/Node.h @@ -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; diff --git a/src/build/libroot/NodeRef.h b/src/build/libroot/NodeRef.h index d92246c4f7..fd7ace6f80 100644 --- a/src/build/libroot/NodeRef.h +++ b/src/build/libroot/NodeRef.h @@ -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)); } };