about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/khash.h8
-rwxr-xr-xsrc/include/wrappedlibs.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/include/khash.h b/src/include/khash.h
index dfce7aff..9d20a0e6 100755
--- a/src/include/khash.h
+++ b/src/include/khash.h
@@ -167,16 +167,16 @@ typedef khint_t khiter_t;
 #endif
 
 #ifndef kcalloc
-#define kcalloc(N,Z) calloc(N,Z)
+#define kcalloc(N,Z) box_calloc(N,Z)
 #endif
 #ifndef kmalloc
-#define kmalloc(Z) malloc(Z)
+#define kmalloc(Z) box_malloc(Z)
 #endif
 #ifndef krealloc
-#define krealloc(P,Z) realloc(P,Z)
+#define krealloc(P,Z) box_realloc(P,Z)
 #endif
 #ifndef kfree
-#define kfree(P) free(P)
+#define kfree(P) box_free(P)
 #endif
 
 static const double __ac_HASH_UPPER = 0.77;
diff --git a/src/include/wrappedlibs.h b/src/include/wrappedlibs.h
index 871f7af0..7bb4d5a2 100755
--- a/src/include/wrappedlibs.h
+++ b/src/include/wrappedlibs.h
@@ -10,8 +10,8 @@ typedef void (*wrappedlib_fini_t)(library_t * lib);
 typedef int (*wrappedlib_get_t)(library_t* lib, const char* name, uintptr_t *offs, uintptr_t *sz, int* weak, int version, const char* vername, int local);
 
 void setNeededLibs(library_t* lib, int n, ...);
-#define SETALT(A)       lib->w.altmy = strdup(#A)
-#define SETALTPREFIX(A) lib->w.altprefix = strdup(A)
+#define SETALT(A)       lib->w.altmy = box_strdup(#A)
+#define SETALTPREFIX(A) lib->w.altprefix = box_strdup(A)
 
 typedef struct wrappedlib_s {
     const char*         name;