Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more linting #174

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
remove redundant parentheses
  • Loading branch information
fperrad committed Nov 21, 2022
commit 294e4fd3748bd8d268aa71d7a0acfce87cc12ffb
2 changes: 1 addition & 1 deletion src/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ void mqtt_mq_clean(struct mqtt_message_queue *mq) {
/* move queue */
{
ssize_t new_tail_idx = new_head - mq->queue_tail;
memmove(mqtt_mq_get(mq, new_tail_idx), mq->queue_tail, sizeof(struct mqtt_queued_message) * (size_t) ((new_tail_idx + 1)));
memmove(mqtt_mq_get(mq, new_tail_idx), mq->queue_tail, sizeof(struct mqtt_queued_message) * (size_t) (new_tail_idx + 1));
mq->queue_tail = mqtt_mq_get(mq, new_tail_idx);

{
Expand Down