lib/slave_config.c
changeset 2025 2d7e29d82e9a
parent 1995 7d748d9cf9e8
child 2589 2b9c78543663
equal deleted inserted replaced
2024:96e2ae6cce95 2025:2d7e29d82e9a
   430     }
   430     }
   431 
   431 
   432     if (size) {
   432     if (size) {
   433         req->data = malloc(size);
   433         req->data = malloc(size);
   434         if (!req->data) {
   434         if (!req->data) {
   435             fprintf(stderr, "Failed to allocate %u bytes of SDO data"
   435             fprintf(stderr, "Failed to allocate %zu bytes of SDO data"
   436                     " memory.\n", size);
   436                     " memory.\n", size);
   437             free(req);
   437             free(req);
   438             return 0;
   438             return 0;
   439         }
   439         }
   440     } else {
   440     } else {
   499     }
   499     }
   500 
   500 
   501     if (size) {
   501     if (size) {
   502         voe->data = malloc(size);
   502         voe->data = malloc(size);
   503         if (!voe->data) {
   503         if (!voe->data) {
   504             fprintf(stderr, "Failed to allocate %u bytes of VoE data"
   504             fprintf(stderr, "Failed to allocate %zu bytes of VoE data"
   505                     " memory.\n", size);
   505                     " memory.\n", size);
   506             free(voe);
   506             free(voe);
   507             return 0;
   507             return 0;
   508         }
   508         }
   509     } else {
   509     } else {