libarchive: open_zipped() does not need to check extensions for e.g. gzip
[oweals/busybox.git] / libbb / safe_gethostname.c
index 7407fb78299c59aa8db1756b76f9ac710c6c0ade..cac99ae03902d6e1313b48b954a6a64fb2ff0078 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (C) 2008 Tito Ragusa <farmatito@tiscali.it>
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
 /*
@@ -50,17 +50,3 @@ char* FAST_FUNC safe_gethostname(void)
        uname(&uts);
        return xstrndup(!uts.nodename[0] ? "?" : uts.nodename, sizeof(uts.nodename));
 }
-
-/*
- * On success return the current malloced and NUL terminated domainname.
- * On error return malloced and NUL terminated string "?".
- * This is an illegal first character for a domainname.
- * The returned malloced string must be freed by the caller.
- */
-char* FAST_FUNC safe_getdomainname(void)
-{
-       struct utsname uts;
-
-       uname(&uts);
-       return xstrndup(!uts.domainname[0] ? "?" : uts.domainname, sizeof(uts.domainname));
-}