Skip to content
Commit 8c29aa98 authored by Xavier Chapron's avatar Xavier Chapron Committed by Carles Cufí
Browse files

net: mqtt: Constify utf8 pointer in mqtt_utf8 struct



mqtt_utf8 structure is used to store the client_id, user_name, password,
topic, will_message.
There is no reason for the mqtt code to modify such data, therefore we
can constify the utf8 pointer.

This would also means that theses client, topic, ... strings can be
safely stored in ROM.

Signed-off-by: default avatarXavier Chapron <xavier.chapron@stimio.fr>
parent eb85aa13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment