Diff for /embedaddon/sudo/common/alloc.c between versions 1.1.1.5 and 1.1.1.6

version 1.1.1.5, 2013/10/14 07:56:33 version 1.1.1.6, 2014/06/15 16:12:54
Line 46 Line 46
 #ifdef HAVE_INTTYPES_H  #ifdef HAVE_INTTYPES_H
 # include <inttypes.h>  # include <inttypes.h>
 #endif  #endif
   #include <limits.h>
   
   #define DEFAULT_TEXT_DOMAIN     "sudo"
   #include "gettext.h"            /* must be included before missing.h */
   
 #include "missing.h"  #include "missing.h"
 #include "alloc.h"  #include "alloc.h"
 #include "fatal.h"  #include "fatal.h"
   
 #define DEFAULT_TEXT_DOMAIN     "sudo"  
 #include "gettext.h"  
   
 /*  /*
  * If there is no SIZE_MAX or SIZE_T_MAX we have to assume that size_t   * If there is no SIZE_MAX or SIZE_T_MAX we have to assume that size_t
  * could be signed (as it is on SunOS 4.x).  This just means that   * could be signed (as it is on SunOS 4.x).  This just means that
Line 168  erealloc3(void *ptr, size_t nmemb, size_t size) Line 169  erealloc3(void *ptr, size_t nmemb, size_t size)
     return ptr;      return ptr;
 }  }
   
 #ifdef notyet  
 /*  /*
  * erecalloc() realloc(3)s nmemb * msize bytes and exits with an error   * erecalloc() realloc(3)s nmemb * msize bytes and exits with an error
  * if overflow would occur or if the system malloc(3)/realloc(3) fails.   * if overflow would occur or if the system malloc(3)/realloc(3) fails.
 * On success, the new space is zero-filled.  You can call ereallocz() * On success, the new space is zero-filled.  You can call erealloc()
  * with a NULL pointer even if the system realloc(3) does not support this.   * with a NULL pointer even if the system realloc(3) does not support this.
  */   */
 void *  void *
Line 195  erecalloc(void *ptr, size_t onmemb, size_t nmemb, size Line 195  erecalloc(void *ptr, size_t onmemb, size_t nmemb, size
     }      }
     return ptr;      return ptr;
 }  }
 #endif  
   
 /*  /*
  * estrdup() is like strdup(3) except that it exits with an error if   * estrdup() is like strdup(3) except that it exits with an error if

Removed from v.1.1.1.5  
changed lines
  Added in v.1.1.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>