mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
mqttd: remove unused variable
Closes https://github.com/curl/curl/pull/6576
This commit is contained in:
parent
fa624f0baa
commit
cc9c4e0f4e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user