From a4e8dbcb69fc654ba047e25bbd5ec7c33d534260 Mon Sep 17 00:00:00 2001 From: Martin Troxler Date: Thu, 16 Dec 2010 15:48:01 +0100 Subject: [PATCH] fixed warning due to 64bit size_t --- lib/slave_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/slave_config.c b/lib/slave_config.c index b44b00b9..719c24f7 100644 --- a/lib/slave_config.c +++ b/lib/slave_config.c @@ -432,7 +432,7 @@ ec_sdo_request_t *ecrt_slave_config_create_sdo_request(ec_slave_config_t *sc, if (size) { req->data = malloc(size); 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); free(req); return 0; @@ -501,7 +501,7 @@ ec_voe_handler_t *ecrt_slave_config_create_voe_handler(ec_slave_config_t *sc, if (size) { voe->data = malloc(size); 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); free(voe); return 0;