mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 00:57:23 +08:00
Use signed char as hostname type.
This commit is contained in:
+1
-1
@@ -1957,7 +1957,7 @@ EC_PUBLIC_API int ecrt_slave_config_eoe_dns_address(
|
||||
*/
|
||||
EC_PUBLIC_API int ecrt_slave_config_eoe_hostname(
|
||||
ec_slave_config_t *sc, /**< Slave configuration. */
|
||||
const unsigned char *name /**< Zero-terminated hostname. */
|
||||
const char *name /**< Zero-terminated hostname. */
|
||||
);
|
||||
|
||||
/*****************************************************************************
|
||||
|
||||
+1
-1
@@ -1016,7 +1016,7 @@ int ecrt_slave_config_eoe_dns_address(ec_slave_config_t *sc,
|
||||
/****************************************************************************/
|
||||
|
||||
int ecrt_slave_config_eoe_hostname(ec_slave_config_t *sc,
|
||||
const unsigned char *name)
|
||||
const char *name)
|
||||
{
|
||||
ec_ioctl_eoe_ip_t io = {};
|
||||
int ret;
|
||||
|
||||
@@ -1493,7 +1493,7 @@ int ecrt_slave_config_eoe_dns_address(ec_slave_config_t *sc,
|
||||
/****************************************************************************/
|
||||
|
||||
int ecrt_slave_config_eoe_hostname(ec_slave_config_t *sc,
|
||||
const unsigned char *name)
|
||||
const char *name)
|
||||
{
|
||||
strncpy(sc->eoe_ip_param_request.name, name, EC_MAX_HOSTNAME_SIZE);
|
||||
sc->eoe_ip_param_request.name_included = 1;
|
||||
|
||||
Reference in New Issue
Block a user