aboutsummaryrefslogtreecommitdiff
path: root/src/cli/stasis_indexer/callbacks.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-11-04 12:12:56 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-11-04 12:12:56 -0500
commit6de3db226d65604f37a4fbed5232546f42c191b9 (patch)
tree6f3d1cb2e503db393631bde96194bc10f8cee358 /src/cli/stasis_indexer/callbacks.c
parent2bf6db7e8b5c018c4f02910643728f4c445295b6 (diff)
downloadstasis-6de3db226d65604f37a4fbed5232546f42c191b9.tar.gz
Convert context manipulation from stack+heap to just heap
Diffstat (limited to 'src/cli/stasis_indexer/callbacks.c')
-rw-r--r--src/cli/stasis_indexer/callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/stasis_indexer/callbacks.c b/src/cli/stasis_indexer/callbacks.c
index 603aef9..20674f0 100644
--- a/src/cli/stasis_indexer/callbacks.c
+++ b/src/cli/stasis_indexer/callbacks.c
@@ -7,9 +7,9 @@
// qsort callback to sort delivery contexts by compact python version
int callback_sort_deliveries_cmpfn(const void *a, const void *b) {
- const struct Delivery *delivery1 = (struct Delivery *) a;
+ const struct Delivery *delivery1 = *(struct Delivery **) a;
const size_t delivery1_python = strtoul(delivery1->meta.python_compact, NULL, 10);
- const struct Delivery *delivery2 = (struct Delivery *) b;
+ const struct Delivery *delivery2 = *(struct Delivery **) b;
const size_t delivery2_python = strtoul(delivery2->meta.python_compact, NULL, 10);
if (delivery2_python > delivery1_python) {