diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-01-03 11:22:56 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:18:46 +0100 |
commit | 5db0e7adf018c82dd63cd21d31dd313dff5561af (patch) | |
tree | 93cc7298b8dfab71966ded0470bf11fbcffe1c29 /src/basic/hostname-util.c | |
parent | 390fb58fd380304b6a3c185ee076a8dbc87a07fe (diff) |
Prep v224: Major cleanup of unneeded functions and some source files.
Diffstat (limited to 'src/basic/hostname-util.c')
-rw-r--r-- | src/basic/hostname-util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/basic/hostname-util.c b/src/basic/hostname-util.c index e336f269f..8f6a5b431 100644 --- a/src/basic/hostname-util.c +++ b/src/basic/hostname-util.c @@ -25,6 +25,8 @@ #include "util.h" #include "hostname-util.h" +/// UNNEEDED by elogind +#if 0 bool hostname_is_set(void) { struct utsname u; @@ -50,6 +52,7 @@ char* gethostname_malloc(void) { return strdup(u.nodename); } +#endif // 0 static bool hostname_valid_char(char c) { return @@ -142,6 +145,8 @@ bool is_localhost(const char *hostname) { endswith(hostname, ".localdomain."); } +/// UNNEEDED by elogind +#if 0 int sethostname_idempotent(const char *s) { char buf[HOST_NAME_MAX + 1] = {}; @@ -191,3 +196,4 @@ int read_hostname_config(const char *path, char **hostname) { *hostname = name; return 0; } +#endif // 0 |