X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fprioq.h;fp=src%2Fshared%2Fprioq.h;h=1c044b135ce7233e099aee073ce2ade552a7004e;hb=cce3553ecec825960739ad3a36e1630da54ce045;hp=d836b36cd9c6dc89e0b8fa58ceb09f3accbd0242;hpb=73318a83b2222cad43d67b01078e38a32ac1c1e2;p=elogind.git diff --git a/src/shared/prioq.h b/src/shared/prioq.h index d836b36cd..1c044b135 100644 --- a/src/shared/prioq.h +++ b/src/shared/prioq.h @@ -28,7 +28,7 @@ typedef struct Prioq Prioq; #define PRIOQ_IDX_NULL ((unsigned) -1) Prioq *prioq_new(compare_func_t compare); -void prioq_free(Prioq *q); +Prioq *prioq_free(Prioq *q); int prioq_ensure_allocated(Prioq **q, compare_func_t compare_func); int prioq_put(Prioq *q, void *data, unsigned *idx);