summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-09-14 07:47:38 +0000
committerJim Meyering <jim@meyering.net>2002-09-14 07:47:38 +0000
commit12b5bb320c15b174809fe5d879c1b5c5cb61ebe0 (patch)
tree69cd3b5327170cab06a168a81fa859ff33524119 /src/who.c
parent95631bcc4d3f264f065eac9cf82203dea4b5e233 (diff)
downloadcoreutils-12b5bb320c15b174809fe5d879c1b5c5cb61ebe0.tar.xz
(print_user): Change type of local to size_t
to avoid warnings about `comparison between signed and unsigned'.
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/who.c b/src/who.c
index 4b16100aa..f63cb11f5 100644
--- 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)