More conversion fixes.
This commit is contained in:
parent
42f09b8add
commit
828e7ae130
@ -154,7 +154,7 @@ int send__connect(struct mosquitto *mosq, uint16_t keepalive, bool clean_session
|
||||
}
|
||||
#endif
|
||||
packet__write_byte(packet, version);
|
||||
byte = (clean_session&0x1)<<1;
|
||||
byte = (uint8_t)((clean_session&0x1)<<1);
|
||||
if(will){
|
||||
byte = byte | (uint8_t)(((mosq->will->msg.qos&0x3)<<3) | ((will&0x1)<<2));
|
||||
if(mosq->retain_available){
|
||||
|
@ -66,8 +66,8 @@ static int persist__client_messages_save(FILE *db_fptr, struct mosquitto *contex
|
||||
chunk.F.id_len = (uint16_t)strlen(context->id);
|
||||
chunk.F.qos = cmsg->qos;
|
||||
chunk.F.retain_dup = (uint8_t)((cmsg->retain&0x0F)<<4 | (cmsg->dup&0x0F));
|
||||
chunk.F.direction = cmsg->direction;
|
||||
chunk.F.state = cmsg->state;
|
||||
chunk.F.direction = (uint8_t)cmsg->direction;
|
||||
chunk.F.state = (uint8_t)cmsg->state;
|
||||
chunk.client_id = context->id;
|
||||
chunk.properties = cmsg->properties;
|
||||
|
||||
|
@ -840,7 +840,7 @@ static int unpwd__decode_passwords(struct mosquitto__unpwd **unpwd)
|
||||
unsigned char *password;
|
||||
unsigned int password_len;
|
||||
int rc;
|
||||
int hashtype;
|
||||
enum mosquitto_pwhash_type hashtype;
|
||||
|
||||
HASH_ITER(hh, *unpwd, u, tmp){
|
||||
/* Need to decode password into hashed data + salt. */
|
||||
|
Loading…
Reference in New Issue
Block a user