net/mqtt: Improve indentation
Replace tabs by spaces to improve code alignment in mqtt_pkt.c. Change-Id: If586b91ba67b8075ddc7e0203dc538420e96b49a Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
parent
51a48d2d07
commit
4cfd7f7fe2
1 changed files with 6 additions and 6 deletions
|
@ -513,12 +513,12 @@ int mqtt_unpack_connect(uint8_t *buf, uint16_t length,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* connection flags */
|
/* connection flags */
|
||||||
user_name_flag = (buf[offset] & 0x80) ? 1 : 0;
|
user_name_flag = (buf[offset] & 0x80) ? 1 : 0;
|
||||||
password_flag = (buf[offset] & 0x40) ? 1 : 0;
|
password_flag = (buf[offset] & 0x40) ? 1 : 0;
|
||||||
msg->will_retain = (buf[offset] & 0x20) ? 1 : 0;
|
msg->will_retain = (buf[offset] & 0x20) ? 1 : 0;
|
||||||
msg->will_qos = (buf[offset] & 0x18) >> 3;
|
msg->will_qos = (buf[offset] & 0x18) >> 3;
|
||||||
msg->will_flag = (buf[offset] & 0x04) ? 1 : 0;
|
msg->will_flag = (buf[offset] & 0x04) ? 1 : 0;
|
||||||
msg->clean_session = (buf[offset] & 0x02) ? 1 : 0;
|
msg->clean_session = (buf[offset] & 0x02) ? 1 : 0;
|
||||||
|
|
||||||
offset += FLAGS_SIZE;
|
offset += FLAGS_SIZE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue