*
* 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.
*/
/*
* This is an illegal first character for a hostname.
* The returned malloced string must be freed by the caller.
*/
-char *safe_gethostname(void)
+char* FAST_FUNC safe_gethostname(void)
{
struct utsname uts;
/* Uname can fail only if you pass a bad pointer to it. */
uname(&uts);
-
- return xstrndup(!*(uts.nodename) ? "?" : uts.nodename, sizeof(uts.nodename));
+ return xstrndup(!uts.nodename[0] ? "?" : uts.nodename, sizeof(uts.nodename));
}