diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-25 05:44:00 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-09 05:49:27 +0100 |
commit | f2d3ec7abf0743a6225ea04bb45bfe467ff20d99 (patch) | |
tree | e1ee19fad68524c9dd688b2b82d714b904660288 /src/shared/hostname-setup.h | |
parent | hostname: use free_and_strdup_and_warn() (diff) | |
download | systemd-f2d3ec7abf0743a6225ea04bb45bfe467ff20d99.tar.xz systemd-f2d3ec7abf0743a6225ea04bb45bfe467ff20d99.zip |
hostnamectl: show hint when user try to set transient hostname but static hostname is already used
Diffstat (limited to 'src/shared/hostname-setup.h')
-rw-r--r-- | src/shared/hostname-setup.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/hostname-setup.h b/src/shared/hostname-setup.h index 022f0eb835..1c9d08a5df 100644 --- a/src/shared/hostname-setup.h +++ b/src/shared/hostname-setup.h @@ -11,7 +11,9 @@ typedef enum HostnameSource { _HOSTNAME_INVALID = -1, } HostnameSource; -const char* hostname_source_to_string(HostnameSource source); +const char* hostname_source_to_string(HostnameSource source) _const_; +HostnameSource hostname_source_from_string(const char *str) _pure_; + int sethostname_idempotent(const char *s); int shorten_overlong(const char *s, char **ret); |