Changeset 8485d99 for lib/realloc.c


Ignore:
Timestamp:
08/29/16 16:14:27 (4 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
99be155
Parents:
ee6e802
Message:

Fix files I broke with my automatic relicensing...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/realloc.c

    ree6e802 r8485d99  
    2424 *
    2525 */
     26
     27
     28#ifdef HAVE_CONFIG_H
     29#  include <config.h>
     30#endif
     31#undef realloc
     32
     33#include <sys/types.h>
     34#include <stdlib.h>
     35
     36void *realloc ();
     37
     38
     39/* If N is zero, allocate a 1-byte block */
     40void *
     41rpl_realloc(void *ptr,size_t n)
     42{
     43       
     44        if (n == 0)
     45                n = 1;
     46        if (ptr == 0)
     47                return malloc(n);
     48        return realloc(ptr,n);
     49}
Note: See TracChangeset for help on using the changeset viewer.