summaryrefslogtreecommitdiff
path: root/tests/server/mqttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server/mqttd.c')
-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;
}