Use signed char as hostname type.
This commit is contained in:
parent
ac57cfce24
commit
a1552bdf61
|
|
@ -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. */
|
||||
);
|
||||
|
||||
/*****************************************************************************
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue