diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-05-17 08:54:00 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-06-19 16:28:28 +0200 |
commit | bfd5a0687fcc65e5617d5bab69ff653393f23e70 (patch) | |
tree | 10f216d7a6ebdd984df003259c5b84fe139a91bd /src/home | |
parent | Fix confusion between killer and prey (diff) | |
download | systemd-bfd5a0687fcc65e5617d5bab69ff653393f23e70.tar.xz systemd-bfd5a0687fcc65e5617d5bab69ff653393f23e70.zip |
various: move const ptr indicator to return value
Diffstat (limited to 'src/home')
-rw-r--r-- | src/home/home-util.c | 4 | ||||
-rw-r--r-- | src/home/home-util.h | 4 | ||||
-rw-r--r-- | src/home/homed-home.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/home/home-util.c b/src/home/home-util.c index e949840152..cb96a7ab4e 100644 --- a/src/home/home-util.c +++ b/src/home/home-util.c @@ -137,10 +137,10 @@ int bus_message_append_secret(sd_bus_message *m, UserRecord *secret) { return sd_bus_message_append(m, "s", formatted); } -const char *home_record_dir(void) { +const char* home_record_dir(void) { return secure_getenv("SYSTEMD_HOME_RECORD_DIR") ?: "/var/lib/systemd/home/"; } -const char *home_system_blob_dir(void) { +const char* home_system_blob_dir(void) { return secure_getenv("SYSTEMD_HOME_SYSTEM_BLOB_DIR") ?: "/var/cache/systemd/home/"; } diff --git a/src/home/home-util.h b/src/home/home-util.h index 42131b9f41..f8472cb7c8 100644 --- a/src/home/home-util.h +++ b/src/home/home-util.h @@ -44,5 +44,5 @@ int bus_message_append_secret(sd_bus_message *m, UserRecord *secret); * operations permit a *very* long timeout */ #define HOME_SLOW_BUS_CALL_TIMEOUT_USEC (2*USEC_PER_MINUTE) -const char *home_record_dir(void); -const char *home_system_blob_dir(void); +const char* home_record_dir(void); +const char* home_system_blob_dir(void); diff --git a/src/home/homed-home.h b/src/home/homed-home.h index 7d466cdd32..8c92e39fe5 100644 --- a/src/home/homed-home.h +++ b/src/home/homed-home.h @@ -231,5 +231,5 @@ bool home_shall_rebalance(Home *h); bool home_is_busy(Home *h); -const char *home_state_to_string(HomeState state); +const char* home_state_to_string(HomeState state); HomeState home_state_from_string(const char *s); |