mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-09 04:04:13 +00:00
warning removal
This commit is contained in:
parent
6c44fcc290
commit
7bb0d9be1b
@ -583,7 +583,7 @@ void PostgreSQL::heartbeat()
|
||||
if (gethostname(hostnameTmp, sizeof(hostnameTmp))!= 0) {
|
||||
hostnameTmp[0] = (char)0;
|
||||
} else {
|
||||
for (int i = 0; i < sizeof(hostnameTmp); ++i) {
|
||||
for (int i = 0; i < (int)sizeof(hostnameTmp); ++i) {
|
||||
if ((hostnameTmp[i] == '.')||(hostnameTmp[i] == 0)) {
|
||||
hostnameTmp[i] = (char)0;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user