aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/heap.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 18:56:33 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-18 18:56:33 +0000
commit14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch)
tree7b1a3e41b75490fac4d45722c90a1847543c6796 /src/libutil/heap.c
parent6b2b4167187fee09365271cca182866ecb029af3 (diff)
downloadrspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz
rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/libutil/heap.c')
-rw-r--r--src/libutil/heap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/heap.c b/src/libutil/heap.c
index 8ce70cf71..dcff58b40 100644
--- a/src/libutil/heap.c
+++ b/src/libutil/heap.c
@@ -140,9 +140,9 @@ rspamd_min_heap_pop(struct rspamd_min_heap *heap)
}
void rspamd_min_heap_update_elt(struct rspamd_min_heap *heap,
- struct rspamd_min_heap_elt *elt, guint npri)
+ struct rspamd_min_heap_elt *elt, unsigned int npri)
{
- guint oldpri;
+ unsigned int oldpri;
g_assert(heap != NULL);
g_assert(elt->idx > 0 && elt->idx <= heap->ar->len);
@@ -188,7 +188,7 @@ void rspamd_min_heap_destroy(struct rspamd_min_heap *heap)
}
struct rspamd_min_heap_elt *
-rspamd_min_heap_index(struct rspamd_min_heap *heap, guint idx)
+rspamd_min_heap_index(struct rspamd_min_heap *heap, unsigned int idx)
{
g_assert(heap != NULL);
g_assert(idx < heap->ar->len);