Add the obvious node_ref constructor

This commit is contained in:
Ingo Weinhold
2013-04-06 23:30:18 +02:00
parent 26296b0aa4
commit 2d8ec1d502
2 changed files with 10 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ struct entry_ref;
struct node_ref {
node_ref();
node_ref(dev_t device, ino_t node);
node_ref(const node_ref &ref);
bool operator==(const node_ref &ref) const;
+9 -1
View File
@@ -38,7 +38,15 @@ node_ref::node_ref()
{
}
// copy constructor
node_ref::node_ref(dev_t device, ino_t node)
:
device(device),
node(node)
{
}
node_ref::node_ref(const node_ref &ref)
: device((dev_t)-1),
node((ino_t)-1)