1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/pgbouncer/const_free.patch
2018-11-07 16:46:13 +00:00

19 lines
526 B
Diff

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)