blob: a422130e50424918a1a55156f4d8083b8dc5bbfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff --git a/lib/usual/base.h b/lib/usual/base.h
index 99b23fe..f835e33 100644
--- a/lib/usual/base.h
+++ b/lib/usual/base.h
@@ -327,14 +327,6 @@ void log_fatal(const char *file, int line, const char *func, bool show_perror, v
#endif
#endif
-/* Fix posix bug by accepting const pointer. */
-static inline void _const_free(const void *p)
-{
- free((void *)p);
-}
-/** Compat: make free() accept const pointer */
-#define free(x) _const_free(x)
-
/** Zeroing malloc */
_MUSTCHECK
static inline void *zmalloc(size_t len)
|