summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-08 11:04:11 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-08 11:04:11 -0500
commit7bb0d9be1b2606a77c9f4e5f5c599ca5c7ff2fb6 (patch)
tree5be585f7edcf5997daa3850dfd4a8364e9223b4f
parent6c44fcc290ae6a4c636d3c4694e908cb17dd3cfc (diff)
downloadinfinitytier-7bb0d9be1b2606a77c9f4e5f5c599ca5c7ff2fb6.tar.gz
infinitytier-7bb0d9be1b2606a77c9f4e5f5c599ca5c7ff2fb6.zip
warning removal
-rw-r--r--controller/PostgreSQL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 8a34ec1d..a43e2118 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -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;