From 9f70d6021b216fc36b5260a7a18f00f0acc27482 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 12 Oct 2006 20:39:33 +0000 Subject: * configure.ac: Avoid compiler warnings about default return type in function definitions and unused variables in tests. * src/who.c (print_user) [HAVE_UT_HOST]: hostlen is only needed if this is #defined. --- src/who.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/who.c') diff --git a/src/who.c b/src/who.c index 211b08fb7..db3af6e18 100644 --- a/src/who.c +++ b/src/who.c @@ -320,7 +320,9 @@ print_user (const STRUCT_UTMP *utmp_ent, time_t boottime) char mesg; char idlestr[IDLESTR_LEN + 1]; static char *hoststr; +#if HAVE_UT_HOST static size_t hostlen; +#endif #define DEV_DIR_WITH_TRAILING_SLASH "/dev/" #define DEV_DIR_LEN (sizeof (DEV_DIR_WITH_TRAILING_SLASH) - 1) -- cgit v1.2.3-54-g00ecf