diff options
author | Moonchild <moonchild@palemoon.org> | 2022-01-20 18:10:55 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-17 19:21:09 +0200 |
commit | c58e7c72b40c3e0d549c6f5a5cedccee393e4ea0 (patch) | |
tree | 3e86e472d18032bbc41121a71f00ae1f4a3df6ae /modules | |
parent | 8bbfcc4c818561ccc30dd2e7ad81894e343c529f (diff) | |
download | uxp-c58e7c72b40c3e0d549c6f5a5cedccee393e4ea0.tar.gz |
Issue #1859 - Part 3: Replace bzip2 handling in MAR files with xz.
Since there really is no need to add file detection logic to the updater
if updating through AUS is old->new only anyway, replacing bzip2
handling with xz handling is fine, instead of adding it.
Considering the far superior compression of LZMA and MAR not being
a common archive format anyway, let's just K.I.S.S. it :)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/libmar/src/mar.h | 2 | ||||
-rw-r--r-- | modules/libmar/src/mar_extract.c | 2 | ||||
-rw-r--r-- | modules/libmar/src/mar_read.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/libmar/src/mar.h b/modules/libmar/src/mar.h index 776daf648d..e9c8d555e4 100644 --- a/modules/libmar/src/mar.h +++ b/modules/libmar/src/mar.h @@ -109,7 +109,7 @@ int mar_enum_items(MarFile *mar, MarItemCallback callback, void *data); * @return The number of bytes written or a negative value if an * error occurs. */ -int mar_read(MarFile *mar, const MarItem *item, int offset, char *buf, +int mar_read(MarFile *mar, const MarItem *item, int offset, uint8_t *buf, int bufsize); /** diff --git a/modules/libmar/src/mar_extract.c b/modules/libmar/src/mar_extract.c index ec1cd6c534..969697ee29 100644 --- a/modules/libmar/src/mar_extract.c +++ b/modules/libmar/src/mar_extract.c @@ -37,7 +37,7 @@ static int mar_ensure_parent_dir(const char *path) static int mar_test_callback(MarFile *mar, const MarItem *item, void *unused) { FILE *fp; - char buf[BLOCKSIZE]; + uint8_t buf[BLOCKSIZE]; int fd, len, offset = 0; if (mar_ensure_parent_dir(item->name)) diff --git a/modules/libmar/src/mar_read.c b/modules/libmar/src/mar_read.c index 241d0c08e4..89b9da27d6 100644 --- a/modules/libmar/src/mar_read.c +++ b/modules/libmar/src/mar_read.c @@ -530,7 +530,7 @@ int mar_enum_items(MarFile *mar, MarItemCallback callback, void *closure) { return 0; } -int mar_read(MarFile *mar, const MarItem *item, int offset, char *buf, +int mar_read(MarFile *mar, const MarItem *item, int offset, uint8_t *buf, int bufsize) { int nr; |