Changeset 8485d99


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...

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/common.h

    ree6e802 r8485d99  
    2424 *
    2525 */
     26
     27#ifndef COMMON_H
     28#define COMMON_H 1
     29
     30#include "config.h"
     31
     32#ifdef __cplusplus
     33#  define BEGIN_C_DECLS extern "C" {
     34#  define END_C_DECLS   }
     35#else /* !__cplusplus */
     36#  define BEGIN_C_DECLS
     37#  define END_C_DECLS
     38#endif /* __cplusplus */
     39
     40
     41#endif /* COMMON_H */
  • lib/malloc.c

    ree6e802 r8485d99  
    2424 *
    2525 */
     26
     27#ifdef HAVE_CONFIG_H
     28#  include <config.h>
     29#endif
     30#undef malloc
     31
     32#include <sys/types.h>
     33#include <stdlib.h>
     34
     35void *malloc ();
     36
     37/* Allocate an N-byte block of memory from the heap.
     38 * If N is zero, allocate a 1-byte block */
     39
     40void *
     41rpl_malloc(size_t n)
     42{
     43        if (n == 0)
     44                n = 1;
     45        return malloc(n);
     46}
  • 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.