summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-08 10:06:39 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-08-08 10:06:39 -0400
commit86056fdbd923fbf55f85b3db704bba021ea90c4f (patch)
tree1e8e46bf3fe85bf6ab9c91a98294479cf7e37626 /node/Node.cpp
parent8a46452a700fa5a8d6fc3bd9308bf483cd715de1 (diff)
downloadinfinitytier-86056fdbd923fbf55f85b3db704bba021ea90c4f.tar.gz
infinitytier-86056fdbd923fbf55f85b3db704bba021ea90c4f.zip
Generalize unlink to OS-dep code in Utils, just a little prep for Windows port.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index 92d8a75c..47125854 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -339,8 +339,8 @@ Node::ReasonForTermination Node::run()
Utils::lockDownFile(identitySecretPath.c_str(),false);
// Clean up some obsolete files if present -- this will be removed later
- unlink((_r->homePath + ZT_PATH_SEPARATOR_S + "status").c_str());
- unlink((_r->homePath + ZT_PATH_SEPARATOR_S + "thisdeviceismine").c_str());
+ Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "status"));
+ Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "thisdeviceismine"));
// Make sure networks.d exists
mkdir((_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d").c_str(),0700);