chiark / gitweb /
Classify processes from sessions into cgroups
[elogind.git] / src / shared / prioq.c
index 8af4c51c2f751336e2822a44a1c12e2257960761..b89888be0e8d5460313ffc3e9712856f214ce5d2 100644 (file)
@@ -45,12 +45,14 @@ Prioq *prioq_new(compare_func_t compare_func) {
         return q;
 }
 
-void prioq_free(Prioq *q) {
+Prioq* prioq_free(Prioq *q) {
         if (!q)
-                return;
+                return NULL;
 
         free(q->items);
         free(q);
+
+        return NULL;
 }
 
 int prioq_ensure_allocated(Prioq **q, compare_func_t compare_func) {