]> xenbits.xensource.com Git - freebsd.git/commitdiff
loader: stand.h should define reallocf as Reallocf
authortsoome <tsoome@FreeBSD.org>
Tue, 17 Sep 2019 13:07:02 +0000 (13:07 +0000)
committertsoome <tsoome@FreeBSD.org>
Tue, 17 Sep 2019 13:07:02 +0000 (13:07 +0000)
Use the same approach as other zalloc functions.

stand/libsa/stand.h

index 3d0cb4ff0c509c2ebb8bd70310b50ec425d36ed9..82a28b34380c346cecda1bd3241d8f3668e82a6e 100644 (file)
@@ -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 */