warning removal

This commit is contained in:
Adam Ierymenko 2019-08-08 11:04:11 -05:00
parent 6c44fcc290
commit 7bb0d9be1b
No known key found for this signature in database
GPG Key ID: 1657198823E52A61

View File

@ -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;