diff options
author | Krzesimir Nowak <knowak@microsoft.com> | 2024-04-11 14:08:34 +0200 |
---|---|---|
committer | Krzesimir Nowak <knowak@microsoft.com> | 2024-04-19 07:21:35 +0200 |
commit | 55c28a88f1b0bdd4fe40bbc1c3fee6ac9dae13fc (patch) | |
tree | e7bfe4a78591d7335718448ab95f5959fa0b50fc /src/sysext | |
parent | sysext: Use string table for parsing mutable mode (diff) | |
download | systemd-55c28a88f1b0bdd4fe40bbc1c3fee6ac9dae13fc.tar.xz systemd-55c28a88f1b0bdd4fe40bbc1c3fee6ac9dae13fc.zip |
sysext: Make static const a macro instead
Diffstat (limited to 'src/sysext')
-rw-r--r-- | src/sysext/sysext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c index 8c6a5a882f..ad7521425e 100644 --- a/src/sysext/sysext.c +++ b/src/sysext/sysext.c @@ -89,7 +89,7 @@ static MutableMode arg_mutable = MUTABLE_NO; /* Is set to IMAGE_CONFEXT when systemd is called with the confext functionality instead of the default */ static ImageClass arg_image_class = IMAGE_SYSEXT; -static const char *mutable_extensions_base_dir = "/var/lib/extensions.mutable"; +#define MUTABLE_EXTENSIONS_BASE_DIR "/var/lib/extensions.mutable" STATIC_DESTRUCTOR_REGISTER(arg_hierarchies, strv_freep); STATIC_DESTRUCTOR_REGISTER(arg_root, freep); @@ -795,7 +795,7 @@ static int resolve_mutable_directory( char **ret_resolved_mutable_directory) { _cleanup_free_ char *path = NULL, *resolved_path = NULL, *dir_name = NULL; - const char *root = arg_root, *base = mutable_extensions_base_dir; + const char *root = arg_root, *base = MUTABLE_EXTENSIONS_BASE_DIR; int r; assert(hierarchy); @@ -948,7 +948,7 @@ static int maybe_import_ignored_mutable_directory(OverlayFSPaths *op) { if (!dir_name) return log_oom(); - path = path_join(mutable_extensions_base_dir, dir_name); + path = path_join(MUTABLE_EXTENSIONS_BASE_DIR, dir_name); if (!path) return log_oom(); |