aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Liodden <eriklio@stud.ntnu.no>2018-01-03 00:31:09 +0100
committerErik Liodden <eriklio@stud.ntnu.no>2018-01-03 00:31:31 +0100
commitdd3612925823116cfc306c894ba51adcc66e3336 (patch)
tree07d2604eee04ebbf7377b72634e035f6391e0bef
parentf8218b7db8de9004c68e1c21b3ca8ef99e83179d (diff)
downloadalgdat-dd3612925823116cfc306c894ba51adcc66e3336.tar.gz
fix mismatch between prototype and implementation
-rw-r--r--structure.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/structure.h b/structure.h
index d73eb22..eb3cec5 100644
--- a/structure.h
+++ b/structure.h
@@ -95,7 +95,7 @@ struct heap {
int (*compar)(const void *, const void *);
};
-void heap_init_empty(struct heap *h, size_t elem_size, void (*freefn)(void *),
+void heap_init(struct heap *h, size_t elem_size, void (*freefn)(void *),
int (*compar)(const void *, const void *));
void heap_dispose(struct heap *h);
void heap_max_heapify(struct heap *h, int pos);