chiark / gitweb /
Add set_consume which always takes ownership
[elogind.git] / src / test / test-prioq.c
index 73c640840aa3a6ffb4b4cadf8e94e551e145f99a..aeac73973b3eee699eb221cf4dddc633bae6fbf0 100644 (file)
@@ -119,7 +119,7 @@ static void test_struct(void) {
                 assert_se(r >= 0);
 
                 if (i % 4 == 0) {
-                        r = set_put(s, t);
+                        r = set_consume(s, t);
                         assert_se(r >= 0);
                 }
         }