fixed warning due to 64bit size_t
This commit is contained in:
parent
075dce4d7e
commit
a4e8dbcb69
|
|
@ -432,7 +432,7 @@ ec_sdo_request_t *ecrt_slave_config_create_sdo_request(ec_slave_config_t *sc,
|
||||||
if (size) {
|
if (size) {
|
||||||
req->data = malloc(size);
|
req->data = malloc(size);
|
||||||
if (!req->data) {
|
if (!req->data) {
|
||||||
fprintf(stderr, "Failed to allocate %u bytes of SDO data"
|
fprintf(stderr, "Failed to allocate %zu bytes of SDO data"
|
||||||
" memory.\n", size);
|
" memory.\n", size);
|
||||||
free(req);
|
free(req);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -501,7 +501,7 @@ ec_voe_handler_t *ecrt_slave_config_create_voe_handler(ec_slave_config_t *sc,
|
||||||
if (size) {
|
if (size) {
|
||||||
voe->data = malloc(size);
|
voe->data = malloc(size);
|
||||||
if (!voe->data) {
|
if (!voe->data) {
|
||||||
fprintf(stderr, "Failed to allocate %u bytes of VoE data"
|
fprintf(stderr, "Failed to allocate %zu bytes of VoE data"
|
||||||
" memory.\n", size);
|
" memory.\n", size);
|
||||||
free(voe);
|
free(voe);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue