Changeset 8485d99 for lib/realloc.c
- Timestamp:
- 08/29/16 16:14:27 (5 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/realloc.c
ree6e802 r8485d99 24 24 * 25 25 */ 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 36 void *realloc (); 37 38 39 /* If N is zero, allocate a 1-byte block */ 40 void * 41 rpl_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.