net: mqtt: struct mqtt_sec_config: Declare hostname with const
The hostname member of struct mqtt_sec_config is used as optval argument to ztls_sesockopt_ctx(). optval is declared as const void* so no need to limit hostname to not allow const variables Signed-off-by: Kim Bøndergaard <kibo@prevas.dk>
This commit is contained in:
parent
350f184d98
commit
dea0511659
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ struct mqtt_sec_config {
|
|||
/** Peer hostname for ceritificate verification.
|
||||
* May be NULL to skip hostname verification.
|
||||
*/
|
||||
char *hostname;
|
||||
const char *hostname;
|
||||
};
|
||||
|
||||
/** @brief MQTT transport type. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue