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:
Kim Bøndergaard 2020-01-29 15:25:22 +01:00 committed by Anas Nashif
commit dea0511659

View file

@ -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. */