Zbigniew Jędrzejewski-Szmek a142c8
From 2fdd12acd5c69bc952d9ca4d5ad796e6e830d21b Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek a142c8
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crodriguez@owncloud.com>
Zbigniew Jędrzejewski-Szmek a142c8
Date: Fri, 11 Nov 2022 15:34:32 +0000
Zbigniew Jędrzejewski-Szmek a142c8
Subject: [PATCH 1/5] shared|install: Use InstallChangeType consistently
Zbigniew Jędrzejewski-Szmek a142c8
Zbigniew Jędrzejewski-Szmek a142c8
gcc 13 -Wenum-int-mismatch, enabled by default, reminds us enum ! = int
Zbigniew Jędrzejewski-Szmek a142c8
Zbigniew Jędrzejewski-Szmek a142c8
(cherry picked from commit 9264db1a0ac6034ab5b40ef3f5914d8dc7d77aba)
Zbigniew Jędrzejewski-Szmek a142c8
---
Zbigniew Jędrzejewski-Szmek a142c8
 src/shared/install.h | 4 ++--
Zbigniew Jędrzejewski-Szmek a142c8
 1 file changed, 2 insertions(+), 2 deletions(-)
Zbigniew Jędrzejewski-Szmek a142c8
Zbigniew Jędrzejewski-Szmek a142c8
diff --git a/src/shared/install.h b/src/shared/install.h
Zbigniew Jędrzejewski-Szmek a142c8
index 9bb412ba06..0abc73897e 100644
Zbigniew Jędrzejewski-Szmek a142c8
--- a/src/shared/install.h
Zbigniew Jędrzejewski-Szmek a142c8
+++ b/src/shared/install.h
Zbigniew Jędrzejewski-Szmek a142c8
@@ -197,7 +197,7 @@ int unit_file_exists(LookupScope scope, const LookupPaths *paths, const char *na
Zbigniew Jędrzejewski-Szmek a142c8
 int unit_file_get_list(LookupScope scope, const char *root_dir, Hashmap *h, char **states, char **patterns);
Zbigniew Jędrzejewski-Szmek a142c8
 Hashmap* unit_file_list_free(Hashmap *h);
Zbigniew Jędrzejewski-Szmek a142c8
 
Zbigniew Jędrzejewski-Szmek a142c8
-InstallChangeType install_changes_add(InstallChange **changes, size_t *n_changes, int type, const char *path, const char *source);
Zbigniew Jędrzejewski-Szmek a142c8
+InstallChangeType install_changes_add(InstallChange **changes, size_t *n_changes, InstallChangeType type, const char *path, const char *source);
Zbigniew Jędrzejewski-Szmek a142c8
 void install_changes_free(InstallChange *changes, size_t n_changes);
Zbigniew Jędrzejewski-Szmek a142c8
 void install_changes_dump(int r, const char *verb, const InstallChange *changes, size_t n_changes, bool quiet);
Zbigniew Jędrzejewski-Szmek a142c8
 
Zbigniew Jędrzejewski-Szmek a142c8
@@ -224,7 +224,7 @@ UnitFileState unit_file_state_from_string(const char *s) _pure_;
Zbigniew Jędrzejewski-Szmek a142c8
 /* from_string conversion is unreliable because of the overlap between -EPERM and -1 for error. */
Zbigniew Jędrzejewski-Szmek a142c8
 
Zbigniew Jędrzejewski-Szmek a142c8
 const char *install_change_type_to_string(InstallChangeType t) _const_;
Zbigniew Jędrzejewski-Szmek a142c8
-int install_change_type_from_string(const char *s) _pure_;
Zbigniew Jędrzejewski-Szmek a142c8
+InstallChangeType install_change_type_from_string(const char *s) _pure_;
Zbigniew Jędrzejewski-Szmek a142c8
 
Zbigniew Jędrzejewski-Szmek a142c8
 const char *unit_file_preset_mode_to_string(UnitFilePresetMode m) _const_;
Zbigniew Jędrzejewski-Szmek a142c8
 UnitFilePresetMode unit_file_preset_mode_from_string(const char *s) _pure_;
Zbigniew Jędrzejewski-Szmek a142c8
-- 
Zbigniew Jędrzejewski-Szmek a142c8
2.39.1
Zbigniew Jędrzejewski-Szmek a142c8