summaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-06 11:46:22 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-10 16:47:21 +0100
commitcc9c4e0f4e2f665b793be021e926401564429a68 (patch)
tree4ea3997d7960cf6d6f95831b4e32f7f3de149c85 /tests/server
parentfa624f0baa4e1350546c31b54a5942f493de7dd3 (diff)
downloadcurl-cc9c4e0f4e2f665b793be021e926401564429a68.tar.gz
mqttd: remove unused variable
Closes https://github.com/curl/curl/pull/6576
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/mqttd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/server/mqttd.c b/tests/server/mqttd.c
index aec4a099b..2b4ac9699 100644
--- a/tests/server/mqttd.c
+++ b/tests/server/mqttd.c
@@ -213,12 +213,10 @@ static void logprotocol(mqttdir dir,
ssize_t i;
unsigned char *ptr = buffer;
char *optr = data;
- ssize_t width = 0;
int left = sizeof(data);
for(i = 0; i<len && (left >= 0); i++) {
msnprintf(optr, left, "%02x", ptr[i]);
- width += 2;
optr += 2;
left -= 2;
}