summaryrefslogtreecommitdiff
path: root/src/common.c
AgeCommit message (Collapse)AuthorFilesLines
2021-12-14everywhere: use stdlib.h for malloc(3) definition, not GNU-specific malloc.hAriadne Conill1-1/+0
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
2021-07-25io_archive: Use SOURCE_DATE_EPOCH for meta files instead of current timekpcyrd1-0/+15
[TT: minor stylistic changes]
2020-05-07use SPDX-License-Identifier in source filesTBK1-3/+1
2013-06-12libapk, apk(8): fix header inclusion issues with musl's headersWilliam Pitcock1-0/+1
2012-01-06common: fix apk_array copying, and additional size_t fixesTimo Teräs1-2/+4
2011-09-20all: fix array size data type on 64 bitNatanael Copa1-3/+3
The array struct aligned size to 64 bit on x86_64 which caused bad things to happen. We use size_t to make sure the size element is correct regardless arch. Solution found by Timo.
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2010-06-05all: rework how arrays workTimo Teräs1-0/+41
Instead of having a null pointer, use a dummy array which just says the array is empty. This helps in multiple places of the code which would otherwise need explicitly need to check first if the array exists. This has been cause of multiple seg.faults in the past as the array check is easily omitted. This also removes (or fixes) all existing checks accordingly.