diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-10-24 14:54:15 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-10-24 14:54:15 -0700 |
commit | 0d8e134f9fe6bebe9a7b13a087ec6101b9655308 (patch) | |
tree | 38656d938be2d0c30e143863259f17a3983cc087 | |
parent | c7d370c17fc8b44f4d83868de9c6958347b75ca2 (diff) | |
download | infinitytier-0d8e134f9fe6bebe9a7b13a087ec6101b9655308.tar.gz infinitytier-0d8e134f9fe6bebe9a7b13a087ec6101b9655308.zip |
Warning removal.
-rw-r--r-- | osdep/OSUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/OSUtils.cpp b/osdep/OSUtils.cpp index c1edc353..30349285 100644 --- a/osdep/OSUtils.cpp +++ b/osdep/OSUtils.cpp @@ -381,7 +381,7 @@ std::vector<std::string> OSUtils::split(const char *s,const char *const sep,cons std::string OSUtils::platformDefaultHomePath() { #ifdef __QNAP__ - char *cmd = "/sbin/getcfg ZeroTier Install_Path -f /etc/config/qpkg.conf"; + char *cmd = "/sbin/getcfg ZeroTier Install_Path -f /etc/config/qpkg.conf"; char buf[128]; FILE *fp; if ((fp = popen(cmd, "r")) == NULL) { @@ -494,7 +494,7 @@ std::string OSUtils::jsonBinFromHex(const nlohmann::json &jv) { std::string s(jsonString(jv,"")); if (s.length() > 0) { - unsigned int buflen = (s.length() / 2) + 1; + unsigned int buflen = (unsigned int)((s.length() / 2) + 1); char *buf = new char[buflen]; try { unsigned int l = Utils::unhex(s.c_str(),buf,buflen); |