summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-16 14:13:44 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-16 14:13:44 -0700
commit53cbe485f07c5b374064f2c6c2ab9b3bdd10ea09 (patch)
treed21fbd179b9704a9620703183d912607a9bd62ac /one.cpp
parent6c29e966dd2a9f4ecd6f48b70e226bea05867b90 (diff)
downloadinfinitytier-53cbe485f07c5b374064f2c6c2ab9b3bdd10ea09.tar.gz
infinitytier-53cbe485f07c5b374064f2c6c2ab9b3bdd10ea09.zip
Some cleanup, and bite the bullet and go ahead and write a simple Http client. Need a cross-platform built-in one to do cli right.
Diffstat (limited to 'one.cpp')
-rw-r--r--one.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/one.cpp b/one.cpp
index bcf27bd4..e5afbcb0 100644
--- a/one.cpp
+++ b/one.cpp
@@ -76,6 +76,18 @@ using namespace ZeroTier;
static OneService *volatile zt1Service = (OneService *)0;
/****************************************************************************/
+/* zerotier-cli personality */
+/****************************************************************************/
+
+#ifdef __WINDOWS__
+static int cli(int argc, _TCHAR* argv[])
+#else
+static int cli(int argc,char **argv)
+#endif
+{
+}
+
+/****************************************************************************/
/* zerotier-idtool personality */
/****************************************************************************/
@@ -107,9 +119,9 @@ static Identity getIdFromArg(char *arg)
}
#ifdef __WINDOWS__
-int idtool(int argc, _TCHAR* argv[])
+static int idtool(int argc, _TCHAR* argv[])
#else
-int idtool(int argc,char **argv)
+static int idtool(int argc,char **argv)
#endif
{
if (argc < 2) {