chiark / gitweb /
tree-wide: make condition_free_list return NULL
[elogind.git] / src / shared / condition.c
index dcbf9a7e86a52f2ef089339550b6da4f02eba41f..3a3452959dd726010dc4ab91f9afede58fd57d43 100644 (file)
@@ -73,11 +73,13 @@ void condition_free(Condition *c) {
         free(c);
 }
 
-void condition_free_list(Condition *first) {
+Condition* condition_free_list(Condition *first) {
         Condition *c, *n;
 
         LIST_FOREACH_SAFE(conditions, c, n, first)
                 condition_free(c);
+
+        return NULL;
 }
 
 static int condition_test_kernel_command_line(Condition *c) {