summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2017-01-13 14:22:36 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2017-01-13 14:22:36 -0800
commit1346e31a8ee962c40b1f18cb8ff1d5fe866744e3 (patch)
tree57b5ec7d8bdf094dcce714c52315dc845208ed05 /service
parent54f25b14ee629bc2d8e68f2b373b832cfef522f7 (diff)
downloadinfinitytier-1346e31a8ee962c40b1f18cb8ff1d5fe866744e3.tar.gz
infinitytier-1346e31a8ee962c40b1f18cb8ff1d5fe866744e3.zip
Windows build fixes, Software update fix, warning removal.
Diffstat (limited to 'service')
-rw-r--r--service/SoftwareUpdater.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/SoftwareUpdater.cpp b/service/SoftwareUpdater.cpp
index 299c0d97..f6572cfc 100644
--- a/service/SoftwareUpdater.cpp
+++ b/service/SoftwareUpdater.cpp
@@ -21,6 +21,9 @@
#include <string.h>
#include <stdint.h>
+#include "../node/Constants.hpp"
+#include "../version.h"
+
#ifdef __WINDOWS__
#include <WinSock2.h>
#include <Windows.h>
@@ -37,9 +40,6 @@
#include "SoftwareUpdater.hpp"
-#include "../version.h"
-
-#include "../node/Constants.hpp"
#include "../node/Utils.hpp"
#include "../node/SHA512.hpp"
#include "../node/Buffer.hpp"
@@ -369,7 +369,7 @@ void SoftwareUpdater::apply()
PROCESS_INFORMATION pi;
memset(&si,0,sizeof(si));
memset(&pi,0,sizeof(pi));
- CreateProcessA(NULL,updatePath.c_str(),NULL,NULL,FALSE,CREATE_NO_WINDOW|CREATE_NEW_PROCESS_GROUP,NULL,NULL,&si,&pi);
+ CreateProcessA(NULL,const_cast<LPSTR>(updatePath.c_str()),NULL,NULL,FALSE,CREATE_NO_WINDOW|CREATE_NEW_PROCESS_GROUP,NULL,NULL,&si,&pi);
#else
char *argv[256];
unsigned long ac = 0;