(print_user): Change type of local to size_t
authorJim Meyering <jim@meyering.net>
Sat, 14 Sep 2002 07:47:38 +0000 (07:47 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 14 Sep 2002 07:47:38 +0000 (07:47 +0000)
to avoid warnings about `comparison between signed and unsigned'.

src/who.c

index 4b16100aa131fdb86a0cf82d432d30093aa494f6..f63cb11f5543eee439c6b994421bc8bf39a6cc1a 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -276,7 +276,7 @@ print_user (const STRUCT_UTMP *utmp_ent)
   char mesg;
   char idlestr[IDLESTR_LEN];
   static char *hoststr;
-  static int hostlen;
+  static size_t hostlen;
 
 #define DEV_DIR_WITH_TRAILING_SLASH "/dev/"
 #define DEV_DIR_LEN (sizeof (DEV_DIR_WITH_TRAILING_SLASH) - 1)