apk-tools/src
Timo Teräs 72d8cb8937 remove IS_ERR_OR_NULL
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-08-23 17:02:50 +03:00
..
Makefile Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
adb.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
adb.h extract: support v3 index verification 2021-08-23 17:02:50 +03:00
adb_comp.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
adb_walk_adb.c adb: adb_walk_adb fix out of boundary write 2021-07-26 10:19:20 +03:00
adb_walk_genadb.c adb: refactor struct adb_header to adb_file_header 2021-07-22 16:14:49 +03:00
adb_walk_gentext.c add adbgen applet to generate databases from it's text dump 2021-06-02 22:35:58 +03:00
adb_walk_text.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
apk-static.c static build: do not use openssl engines 2010-06-30 16:55:50 +03:00
apk-test.c test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
apk.c add basic abstraction for cryptographic operations 2021-06-11 13:35:32 +03:00
apk.pc.in build: fix includedir in pkgconfig file 2020-04-01 19:14:28 +03:00
apk_adb.c mkpkg, extract: implement support for symlinks, devices and fifos 2021-06-23 20:21:29 +03:00
apk_adb.h extract: new applet to extract v2 packages 2021-06-11 13:35:32 +03:00
apk_applet.h make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
apk_atom.h make the atom functions not use global state 2020-05-19 12:02:56 +03:00
apk_blob.h adb: adb_walk_adb fix out of boundary write 2021-07-26 10:19:20 +03:00
apk_context.h extract: add experimental support for uvol volumes 2021-06-11 13:35:32 +03:00
apk_crypto.h extract: use extraction api, and implement it for v3 packages 2021-07-30 17:54:25 +03:00
apk_database.h Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
apk_defines.h remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
apk_extract.h Further refactor extract API to have separate ops vtable 2021-07-27 16:28:22 +03:00
apk_hash.h use SPDX-License-Identifier in source files 2020-05-07 10:45:42 +03:00
apk_io.h extract: use extraction api, and implement it for v3 packages 2021-07-30 17:54:25 +03:00
apk_openssl.h add basic abstraction for cryptographic operations 2021-06-11 13:35:32 +03:00
apk_package.h Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
apk_pathbuilder.h fixup some includes 2021-06-19 14:25:54 +03:00
apk_print.h Use __attribute__ ((format)) where possible and fix issues found by it 2021-07-26 10:25:23 +03:00
apk_provider_data.h use SPDX-License-Identifier in source files 2020-05-07 10:45:42 +03:00
apk_solver.h fix, simplify and document upgrade --ignore 2020-08-24 15:26:25 +03:00
apk_solver_data.h use SPDX-License-Identifier in source files 2020-05-07 10:45:42 +03:00
apk_tar.h Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
apk_trust.h add basic abstraction for cryptographic operations 2021-06-11 13:35:32 +03:00
apk_version.h add separate vertest applet for version string testing 2020-10-09 16:09:19 +03:00
app_adbdump.c adb: unify various interfaces to adb_m_process 2021-07-22 15:30:08 +03:00
app_adbsign.c adb: make adb mmap/stream parser more united, add ADB_BLOCK_DATAX 2021-07-22 16:14:49 +03:00
app_add.c Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
app_audit.c add basic abstraction for cryptographic operations 2021-06-11 13:35:32 +03:00
app_cache.c Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
app_convdb.c Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
app_convndx.c Further refactor extract API to have separate ops vtable 2021-07-27 16:28:22 +03:00
app_del.c del: report correctly package's provides names 2021-03-19 12:08:46 +02:00
app_dot.c make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
app_extract.c extract: fix directory handling 2021-08-17 13:58:20 +03:00
app_fetch.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
app_fix.c make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
app_index.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
app_info.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
app_list.c list: recognize both --upgradable and --upgradeable 2021-08-23 11:07:50 +03:00
app_manifest.c manifest: support v3 packages 2021-07-30 18:30:44 +03:00
app_mkndx.c mkndx: support v3 packages 2021-07-30 17:54:30 +03:00
app_mkpkg.c Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
app_policy.c make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
app_search.c make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
app_stats.c make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
app_update.c apk_update: use URL_PRINTF 2020-12-29 13:52:29 +02:00
app_upgrade.c make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
app_verify.c Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
app_version.c add missing apk_trust.h 2020-10-09 16:18:23 +03:00
app_vertest.c make apk_database optional for applets that don't need it 2020-10-09 16:09:19 +03:00
applet.c rename apk_db_options to apk_ctx, rework logging 2020-10-09 16:09:19 +03:00
atom.c make the atom functions not use global state 2020-05-19 12:02:56 +03:00
blob.c adb: adb_walk_adb fix out of boundary write 2021-07-26 10:19:20 +03:00
commit.c db: add some error checking to database state write 2021-07-26 14:10:07 +03:00
common.c io_archive: Use SOURCE_DATE_EPOCH for meta files instead of current time 2021-07-25 09:01:52 +03:00
context.c extract: add experimental support for uvol volumes 2021-06-11 13:35:32 +03:00
crypto_openssl.c openssl: explicitly ignore BIO_reset() return value 2021-06-21 13:03:16 +03:00
database.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
extract.c extract: fix --force-overwrite 2021-08-03 21:47:19 +03:00
extract_v2.c extract: fix extracting untrusted package 2021-08-03 21:21:43 +03:00
extract_v3.c extract: support v3 index verification 2021-08-23 17:02:50 +03:00
genhelp.lua genhelp: improve to work with lua 5.1 2021-07-16 10:16:32 +03:00
hash.c make the atom functions not use global state 2020-05-19 12:02:56 +03:00
io.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
io_gunzip.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
io_url.c reduce misuse of error codes from errno.h 2021-06-19 16:10:13 +03:00
lua-apk.c rename apk_db_options to apk_ctx, rework logging 2020-10-09 16:09:19 +03:00
meson.build Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
package.c Further refactor extract API to have separate ops vtable 2021-07-27 16:28:22 +03:00
pathbuilder.c mkpkg: new applet to create v2 packages with basic functionality 2021-06-11 13:35:32 +03:00
print.c Refactor .apk extraction code 2021-07-27 14:09:38 +03:00
solver.c solver: don't consider requirer count for preference 2021-05-19 16:29:55 +03:00
tar.c remove IS_ERR_OR_NULL 2021-08-23 17:02:50 +03:00
template.c use SPDX-License-Identifier in source files 2020-05-07 10:45:42 +03:00
trust.c reduce misuse of error codes from errno.h 2021-06-19 16:10:13 +03:00
version.c add separate vertest applet for version string testing 2020-10-09 16:09:19 +03:00