summaryrefslogtreecommitdiffstats
path: root/src/vmspawn
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-05-17 08:54:00 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-06-19 16:28:28 +0200
commitbfd5a0687fcc65e5617d5bab69ff653393f23e70 (patch)
tree10f216d7a6ebdd984df003259c5b84fe139a91bd /src/vmspawn
parentFix confusion between killer and prey (diff)
downloadsystemd-bfd5a0687fcc65e5617d5bab69ff653393f23e70.tar.xz
systemd-bfd5a0687fcc65e5617d5bab69ff653393f23e70.zip
various: move const ptr indicator to return value
Diffstat (limited to 'src/vmspawn')
-rw-r--r--src/vmspawn/vmspawn-settings.h2
-rw-r--r--src/vmspawn/vmspawn-util.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vmspawn/vmspawn-settings.h b/src/vmspawn/vmspawn-settings.h
index 5446c20911..0902dbb245 100644
--- a/src/vmspawn/vmspawn-settings.h
+++ b/src/vmspawn/vmspawn-settings.h
@@ -24,5 +24,5 @@ typedef enum SettingsMask {
_SETTING_FORCE_ENUM_WIDTH = UINT64_MAX
} SettingsMask;
-const char *console_mode_to_string(ConsoleMode m) _const_;
+const char* console_mode_to_string(ConsoleMode m) _const_;
ConsoleMode console_mode_from_string(const char *s) _pure_;
diff --git a/src/vmspawn/vmspawn-util.h b/src/vmspawn/vmspawn-util.h
index fed0996891..6a77b46e2e 100644
--- a/src/vmspawn/vmspawn-util.h
+++ b/src/vmspawn/vmspawn-util.h
@@ -52,11 +52,11 @@ typedef struct OvmfConfig {
bool supports_sb;
} OvmfConfig;
-static inline const char *ovmf_config_format(const OvmfConfig *c) {
+static inline const char* ovmf_config_format(const OvmfConfig *c) {
return ASSERT_PTR(c)->format ?: "raw";
}
-static inline const char *ovmf_config_vars_format(const OvmfConfig *c) {
+static inline const char* ovmf_config_vars_format(const OvmfConfig *c) {
return ASSERT_PTR(c)->vars_format ?: "raw";
}