]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: fix wrong data type
authorfangxiuning <fangxiuning123@126.com>
Wed, 8 Jul 2020 14:04:08 +0000 (22:04 +0800)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Jul 2020 08:05:39 +0000 (10:05 +0200)
src/shared/install.c
src/shared/install.h

index fb5e166ff016ea673b469d173a686a27f53fd102..3d19387504f19008084c1441fbe06aedc7bd05e4 100644 (file)
@@ -254,7 +254,7 @@ static int path_is_vendor_or_generator(const LookupPaths *p, const char *path) {
 int unit_file_changes_add(
                 UnitFileChange **changes,
                 size_t *n_changes,
-                UnitFileChangeType type,
+                int type,
                 const char *path,
                 const char *source) {
 
index 5ff8bec16539bab90d5a540efed7bc6dc0adcc02..788517d23e91b4f0f19b01b047d606d7691caf56 100644 (file)
@@ -183,7 +183,7 @@ int unit_file_exists(UnitFileScope scope, const LookupPaths *paths, const char *
 int unit_file_get_list(UnitFileScope scope, const char *root_dir, Hashmap *h, char **states, char **patterns);
 Hashmap* unit_file_list_free(Hashmap *h);
 
-int unit_file_changes_add(UnitFileChange **changes, size_t *n_changes, UnitFileChangeType type, const char *path, const char *source);
+int unit_file_changes_add(UnitFileChange **changes, size_t *n_changes, int type, const char *path, const char *source);
 void unit_file_changes_free(UnitFileChange *changes, size_t n_changes);
 void unit_file_dump_changes(int r, const char *verb, const UnitFileChange *changes, size_t n_changes, bool quiet);