From 81e89154ae79446568a21f562ae9361588f7e486 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Mon, 5 Feb 2024 13:58:45 +0100 Subject: [PATCH] Added const for array/string parameters. --- include/ecrt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ecrt.h b/include/ecrt.h index ec7ba6d3..5a397349 100644 --- a/include/ecrt.h +++ b/include/ecrt.h @@ -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. */ ); /*****************************************************************************