Author: tsoome
Date: Tue Sep 17 13:07:02 2019
New Revision: 352444
URL: https://svnweb.freebsd.org/changeset/base/352444

Log:
  loader: stand.h should define reallocf as Reallocf
  
  Use the same approach as other zalloc functions.

Modified:
  head/stand/libsa/stand.h

Modified: head/stand/libsa/stand.h
==============================================================================
--- head/stand/libsa/stand.h    Tue Sep 17 11:35:53 2019        (r352443)
+++ head/stand/libsa/stand.h    Tue Sep 17 13:07:02 2019        (r352444)
@@ -264,9 +264,6 @@ static __inline int tolower(int c)
 extern void    setheap(void *base, void *top);
 extern char    *sbrk(int incr);
 
-extern void    *reallocf(void *ptr, size_t size);
-extern void    mallocstats(void);
-
 extern int     printf(const char *fmt, ...) __printflike(1, 2);
 extern int     asprintf(char **buf, const char *cfmt, ...) __printflike(2, 3);
 extern int     sprintf(char *buf, const char *cfmt, ...) __printflike(2, 3);
@@ -433,17 +430,20 @@ void *Malloc(size_t, const char *, int);
 void *Calloc(size_t, size_t, const char *, int);
 void *Realloc(void *, size_t, const char *, int);
 void Free(void *, const char *, int);
+extern void    mallocstats(void);
 
 #ifdef DEBUG_MALLOC
 #define malloc(x)      Malloc(x, __FILE__, __LINE__)
 #define calloc(x, y)   Calloc(x, y, __FILE__, __LINE__)
 #define free(x)                Free(x, __FILE__, __LINE__)
 #define realloc(x, y)  Realloc(x, y, __FILE__, __LINE__)
+#define reallocf(x, y) Reallocf(x, y, __FILE__, __LINE__)
 #else
 #define malloc(x)      Malloc(x, NULL, 0)
 #define calloc(x, y)   Calloc(x, y, NULL, 0)
 #define free(x)                Free(x, NULL, 0)
 #define realloc(x, y)  Realloc(x, y, NULL, 0)
+#define reallocf(x, y) Reallocf(x, y, NULL, 0)
 #endif
 
 #endif /* STAND_H */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to