summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-12-29 19:36:34 +0200
committerTimo Teräs <timo.teras@iki.fi>2021-12-29 19:36:34 +0200
commit9ed4785f1ca9b6bf4c039b28511304d329bf0f9d (patch)
tree47a73ea81faf9ada08622947e6a163684397dac9
parent8d5784aaf5c36f0a67302a9cd332bf8befff4b32 (diff)
downloadapk-tools-9ed4785f1ca9b6bf4c039b28511304d329bf0f9d.tar.gz
apk-tools-9ed4785f1ca9b6bf4c039b28511304d329bf0f9d.tar.bz2
apk-tools-9ed4785f1ca9b6bf4c039b28511304d329bf0f9d.tar.xz
apk-tools-9ed4785f1ca9b6bf4c039b28511304d329bf0f9d.zip
apk_adb: add missing compare functions
fixes #10803
-rw-r--r--src/apk_adb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_adb.c b/src/apk_adb.c
index f8b0fe6..c7fbdde 100644
--- a/src/apk_adb.c
+++ b/src/apk_adb.c
@@ -167,6 +167,7 @@ static struct adb_scalar_schema scalar_hexblob = {
.kind = ADB_KIND_BLOB,
.tostring = hexblob_tostring,
.fromstring = hexblob_fromstring,
+ .compare = string_compare,
};
static apk_blob_t int_tostring(struct adb *db, adb_val_t val, char *buf, size_t bufsz)
@@ -213,6 +214,7 @@ static struct adb_scalar_schema scalar_oct = {
.kind = ADB_KIND_INT,
.tostring = oct_tostring,
.fromstring = oct_fromstring,
+ .compare = int_compare,
};
static apk_blob_t hsize_tostring(struct adb *db, adb_val_t val, char *buf, size_t bufsz)