Cleanup whitespace
This commit is contained in:
parent
df5faa77c9
commit
5d746b6787
2 changed files with 52 additions and 50 deletions
|
@ -374,6 +374,7 @@ Buffer *make_buffer_for_header(size_t sz, MQTTControlPacketType type) {
|
|||
sz += variable_length_int_size(sz); // size field
|
||||
sz += 1; // packet type and flags
|
||||
|
||||
|
||||
Buffer *buffer = buffer_allocate(sz);
|
||||
buffer->data[0] = type << 4;
|
||||
|
||||
|
@ -387,6 +388,7 @@ Buffer *make_buffer_for_header(size_t sz, MQTTControlPacketType type) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
buffer->position += 1;
|
||||
variable_length_int_encode(sz - 2, buffer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue