X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftest%2Ftest-install.c;h=5ee52e64cb5ac0a271429d7523c6cc12e96c9b3a;hb=e0952d9d021234e79f3a70f33a9e5d201872a417;hp=099eb401d7e55301af642526ff7faa23e3d1f164;hpb=d309c1c36426f9a355e28e3c35153281939aeea6;p=elogind.git
diff --git a/src/test/test-install.c b/src/test/test-install.c
index 099eb401d..5ee52e64c 100644
--- a/src/test/test-install.c
+++ b/src/test/test-install.c
@@ -19,19 +19,15 @@
along with systemd; If not, see .
***/
-#include
#include
#include
-#include
-#include "util.h"
-#include "path-util.h"
#include "install.h"
static void dump_changes(UnitFileChange *c, unsigned n) {
unsigned i;
- assert(n == 0 || c);
+ assert_se(n == 0 || c);
for (i = 0; i < n; i++) {
if (c[i].type == UNIT_FILE_UNLINK)
@@ -51,7 +47,7 @@ int main(int argc, char* argv[]) {
UnitFileChange *changes = NULL;
unsigned n_changes = 0;
- h = hashmap_new(string_hash_func, string_compare_func);
+ h = hashmap_new(&string_hash_ops);
r = unit_file_get_list(UNIT_FILE_SYSTEM, NULL, h);
assert_se(r == 0);