From a84677e0f43e142094ebb1a870cd840cb2cac158 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 9 Apr 2023 01:02:13 +0900 Subject: os-util: split-out open_os_release() from open_extension_release() The logics of opening os-release and extension-release are completely different. No functional change, just refactoring. --- src/basic/os-util.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/basic/os-util.h') diff --git a/src/basic/os-util.h b/src/basic/os-util.h index 374b4ee584..bd9e8949e6 100644 --- a/src/basic/os-util.h +++ b/src/basic/os-util.h @@ -29,9 +29,7 @@ static inline int path_is_os_tree(const char *path) { } int open_extension_release(const char *root, ImageClass image_class, const char *extension, bool relax_extension_release_check, char **ret_path, int *ret_fd); -static inline int open_os_release(const char *root, char **ret_path, int *ret_fd) { - return open_extension_release(root, _IMAGE_CLASS_INVALID, NULL, false, ret_path, ret_fd); -} +int open_os_release(const char *root, char **ret_path, int *ret_fd); int _parse_extension_release(const char *root, ImageClass image_class, bool relax_extension_release_check, const char *extension, ...) _sentinel_; int _parse_os_release(const char *root, ...) _sentinel_; -- cgit v1.2.3