From a1024222ef390ecfdcc3e605eeec5d8386901ec4 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 4 Feb 2017 12:11:53 +0100 Subject: [PATCH] compiler warning --- src/ebusd/mqtthandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index bc486f17..776f56d1 100644 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -232,7 +232,7 @@ int on_keypassword(char *buf, int size, int rwflag, void *userdata) { if (!g_keypass) { return 0; } - int len = strlen(g_keypass); + size_t len = strlen(g_keypass); if (len>size) { len = size; }