fixed warning due to 64bit size_t
authorMartin Troxler <ch1010277@ch10pc446>
Thu, 16 Dec 2010 15:48:01 +0100
changeset 2025 2d7e29d82e9a
parent 2024 96e2ae6cce95
child 2026 68c1c31522a2
fixed warning due to 64bit size_t
lib/slave_config.c
--- a/lib/slave_config.c	Thu Dec 16 15:47:28 2010 +0100
+++ b/lib/slave_config.c	Thu Dec 16 15:48:01 2010 +0100
@@ -432,7 +432,7 @@
     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 @@
     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;