Changeset 1ad43f8 in rtems


Ignore:
Timestamp:
Sep 13, 2018, 12:49:16 PM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
313f897
Parents:
5418890
git-author:
Sebastian Huber <sebastian.huber@…> (09/13/18 12:49:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/04/18 06:02:28)
Message:

Avoid need for -fno-builtin for calloc()

Use RTEMS_OBFUSCATE_VARIABLE() instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/calloc.c

    r5418890 r1ad43f8  
    2222#include <stdlib.h>
    2323#include <string.h>
     24#include <rtems/score/basedefs.h>
    2425
    2526void *calloc(
     
    3334  length = nelem * elsize;
    3435  cptr = malloc( length );
     36  RTEMS_OBFUSCATE_VARIABLE( cptr );
    3537  if ( cptr )
    3638    memset( cptr, '\0', length );
Note: See TracChangeset for help on using the changeset viewer.