diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
| commit | 487eb17ec075dd2bdc91f78b41577b070d90f8f5 (patch) | |
| tree | 1dccfa3836a48cf917934fe5dd01210d9d60d236 /node/Utils.cpp | |
| parent | 9f16707b0b8ec62de67394bf4884408eb65f2a7a (diff) | |
| download | infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.tar.gz infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.zip | |
ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap.
Diffstat (limited to 'node/Utils.cpp')
| -rw-r--r-- | node/Utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp index 32cfe2d1..94f66c11 100644 --- a/node/Utils.cpp +++ b/node/Utils.cpp @@ -501,7 +501,7 @@ uint64_t Utils::fromRfc1123(const char *tstr) struct tm t; char wdays[128],mons[128]; - int l = strlen(tstr); + int l = (int)strlen(tstr); if ((l < 29)||(l > 64)) return 0; int assigned = sscanf(tstr,"%3s, %02d %3s %4d %02d:%02d:%02d GMT",wdays,&t.tm_mday,mons,&t.tm_year,&t.tm_hour,&t.tm_min,&t.tm_sec); @@ -620,7 +620,7 @@ std::vector<std::string> Utils::split(const char *s,const char *const sep,const std::string Utils::trim(const std::string &s) { - unsigned long end = s.length(); + unsigned long end = (unsigned long)s.length(); while (end) { char c = s[end - 1]; if ((c == ' ')||(c == '\r')||(c == '\n')||(!c)||(c == '\t')) |
