diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2021-12-10 11:41:52 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-12-14 16:23:29 +0000 |
commit | f4f7796ccc9e398b047bc537e28a065dfa83c8a9 (patch) | |
tree | 9678ab251f86e43d41e0aa6a3d7e99cf47dd5915 /src | |
parent | b2d3d6318461344ab80abf93eda715a2783d4aa6 (diff) | |
download | apk-tools-f4f7796ccc9e398b047bc537e28a065dfa83c8a9.tar.gz apk-tools-f4f7796ccc9e398b047bc537e28a065dfa83c8a9.tar.bz2 apk-tools-f4f7796ccc9e398b047bc537e28a065dfa83c8a9.tar.xz apk-tools-f4f7796ccc9e398b047bc537e28a065dfa83c8a9.zip |
everywhere: use stdlib.h for malloc(3) definition, not GNU-specific malloc.h
musl implements support for malloc.h, but it is only a stub. we do not use
any of the GNU-specific malloc interfaces, so just use POSIX stdlib.h instead.
ref #10794
Diffstat (limited to 'src')
-rw-r--r-- | src/adb.c | 1 | ||||
-rw-r--r-- | src/blob.c | 2 | ||||
-rw-r--r-- | src/common.c | 1 | ||||
-rw-r--r-- | src/database.c | 1 | ||||
-rw-r--r-- | src/io.c | 1 | ||||
-rw-r--r-- | src/io_gunzip.c | 1 | ||||
-rw-r--r-- | src/package.c | 1 | ||||
-rw-r--r-- | src/print.c | 1 |
8 files changed, 1 insertions, 8 deletions
@@ -1,7 +1,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <malloc.h> #include <assert.h> #include <errno.h> #include <sys/mman.h> @@ -7,7 +7,7 @@ * SPDX-License-Identifier: GPL-2.0-only */ -#include <malloc.h> +#include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdint.h> diff --git a/src/common.c b/src/common.c index 580e6d5..2b0fe7e 100644 --- a/src/common.c +++ b/src/common.c @@ -6,7 +6,6 @@ * SPDX-License-Identifier: GPL-2.0-only */ -#include <malloc.h> #include <string.h> #include <stdlib.h> #include <unistd.h> diff --git a/src/database.c b/src/database.c index 589a505..be7a0a1 100644 --- a/src/database.c +++ b/src/database.c @@ -14,7 +14,6 @@ #include <libgen.h> #include <limits.h> #include <unistd.h> -#include <malloc.h> #include <string.h> #include <stdlib.h> #include <signal.h> @@ -12,7 +12,6 @@ #include <fcntl.h> #include <endian.h> #include <unistd.h> -#include <malloc.h> #include <dirent.h> #include <stdint.h> #include <sys/mman.h> diff --git a/src/io_gunzip.c b/src/io_gunzip.c index e3ff178..ce29592 100644 --- a/src/io_gunzip.c +++ b/src/io_gunzip.c @@ -10,7 +10,6 @@ #include <stdio.h> #include <fcntl.h> #include <unistd.h> -#include <malloc.h> #include <zlib.h> #include "apk_defines.h" diff --git a/src/package.c b/src/package.c index 6003c5b..0e6a23a 100644 --- a/src/package.c +++ b/src/package.c @@ -12,7 +12,6 @@ #include <ctype.h> #include <stdio.h> #include <limits.h> -#include <malloc.h> #include <string.h> #include <stdlib.h> #include <unistd.h> diff --git a/src/print.c b/src/print.c index 31a9fbb..a177cd5 100644 --- a/src/print.c +++ b/src/print.c @@ -11,7 +11,6 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> -#include <malloc.h> #include <errno.h> #include <sys/ioctl.h> #include <sys/types.h> |