openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

alloc.h (587B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  */
      7 
      8 #ifndef _SHR_ALLOC_H
      9 #define _SHR_ALLOC_H
     10 
     11 #include <sal/core/alloc.h>
     12 #include <sal/core/libc.h>
     13 
     14 /*
     15  * sal_free() is redefined here to the NULL-pointer safe version. 
     16  * 
     17  * This allows all code within the SDK to use the NULL-safe version without
     18  * affecting existing SAL implementations or external codebases.
     19  */
     20 
     21 #define sal_free sal_free_safe
     22  
     23 #endif /* _SHR_ALLOC_H */