diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-01-18 18:57:06 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-02-12 10:24:32 -0500 |
commit | e8faf2f2adeb9066de3c968a57803bb262f61ee1 (patch) | |
tree | 130c2e3d904da7876ac88ea089f85f48cab5e313 /firmware/common/zip.c | |
parent | 95dfc489b5a602f68202b206c434f8485e9d3915 (diff) | |
download | rockbox-e8faf2f2adeb9066de3c968a57803bb262f61ee1.tar.gz rockbox-e8faf2f2adeb9066de3c968a57803bb262f61ee1.zip |
buflib: add a common dummy callbacks struct & use it
There are various allocations that can't be moved or shrunk.
Provide a global callback struct for this use case instead of
making each caller declare its own dummy struct.
Also fixed ROLO and x1000 installer code which incorrectly
used movable allocations.
Change-Id: I00088396b9826e02e69a4a33477fe1a7816374f1
Diffstat (limited to 'firmware/common/zip.c')
-rw-r--r-- | firmware/common/zip.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/common/zip.c b/firmware/common/zip.c index 9512d6c239..36b90a9223 100644 --- a/firmware/common/zip.c +++ b/firmware/common/zip.c | |||
@@ -32,9 +32,7 @@ | |||
32 | #include "crc32.h" | 32 | #include "crc32.h" |
33 | #include "rbendian.h" | 33 | #include "rbendian.h" |
34 | 34 | ||
35 | #define zip_core_alloc(N) core_alloc_ex("zip",(N),&dummy_ops) | 35 | #define zip_core_alloc(N) core_alloc_ex("zip",(N),&buflib_ops_locked) |
36 | |||
37 | static struct buflib_callbacks dummy_ops; | ||
38 | 36 | ||
39 | enum { | 37 | enum { |
40 | ZIP_SIG_ED = 0x06054b50, | 38 | ZIP_SIG_ED = 0x06054b50, |