From: Jim Meyering Date: Sat, 14 Sep 2002 07:47:38 +0000 (+0000) Subject: (print_user): Change type of local to size_t X-Git-Tag: v4.5.2~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12b5bb320c15b174809fe5d879c1b5c5cb61ebe0;p=thirdparty%2Fcoreutils.git (print_user): Change type of local to size_t to avoid warnings about `comparison between signed and unsigned'. --- diff --git a/src/who.c b/src/who.c index 4b16100aa1..f63cb11f55 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)