Added const for array/string parameters.

This commit is contained in:
Florian Pose 2024-02-05 13:58:45 +01:00
parent 82d1dfff3c
commit 81e89154ae
1 changed files with 2 additions and 2 deletions

View File

@ -1823,7 +1823,7 @@ EC_PUBLIC_API int ecrt_slave_config_flag(
*/
EC_PUBLIC_API int ecrt_slave_config_eoe_link(
ec_slave_config_t *sc, /**< Slave configuration. */
unsigned char *mac_address /**< MAC address. */
const unsigned char *mac_address /**< MAC address. */
);
/** Sets the IP address for Ethernet-over-EtherCAT (EoE) operation.
@ -1888,7 +1888,7 @@ EC_PUBLIC_API int ecrt_slave_config_eoe_dns(
*/
EC_PUBLIC_API int ecrt_slave_config_eoe_name(
ec_slave_config_t *sc, /**< Slave configuration. */
unsigned char *name /**< Zero-terminated hostname. */
const unsigned char *name /**< Zero-terminated hostname. */
);
/*****************************************************************************