summaryrefslogtreecommitdiff
path: root/src/adb_walk_text.c
AgeCommit message (Collapse)AuthorFilesLines
2021-08-23remove IS_ERR_OR_NULLTimo Teräs1-1/+1
In most places where pointer can be an 'error' it cannot be null pointer. Further, in those cases just calling PTR_ERR() is not enough to handle the null case. Simplify code by removing this case. If NULL case needs to be handled, it's better to add separate check and return fixed error code in that case.
2021-07-22rework apk_istream_splice and apk_istream_teeTimo Teräs1-2/+1
- apk_istream_splice usage is converted to apk_stream_copy which is the newer variant. With caching enabled by default, this makes more sense mmapping or using separate buffers. - apk_istream_tee is reworked to write to apk_ostream, which simplifies quite a bit of various things
2021-07-22io: rework apk_istream_get_* to not return erros in blob valueTimo Teräs1-2/+2
The interface was slightly cumbersome, so replace these functions to return explicit error, and make the return blob a pointer arg.
2021-07-22adb: unify various interfaces to adb_m_processTimo Teräs1-0/+131
Removes code duplication, and puts important checks in one place. Support seamless decompression in adbdump.