summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/command.c b/lib/command.c
index 78d8dbdc62..2d262c1146 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -130,12 +130,6 @@ struct host host;
*/
const char *hostname_get(void)
{
- struct utsname names;
-
- if (!host.name) {
- uname(&names);
- host.name = XSTRDUP(MTYPE_HOST, names.nodename);
- }
return host.name;
}
@@ -144,14 +138,6 @@ const char *hostname_get(void)
*/
const char *domainname_get(void)
{
- struct utsname names;
-
- if (!host.name || !host.domainname) {
-#ifdef HAVE_STRUCT_UTSNAME_DOMAINNAME
- uname(&names);
- host.domainname = XSTRDUP(MTYPE_HOST, names.domainname);
-#endif
- }
return host.domainname;
}