From: Jim Meyering Date: Sun, 28 Apr 2002 23:54:47 +0000 (+0000) Subject: add comment for prev change X-Git-Tag: SH-UTILS-2_0_12~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eae0819e3d4e09d7263948cc25f784480ce53267;p=thirdparty%2Fcoreutils.git add comment for prev change --- diff --git a/src/who.c b/src/who.c index c57e14fd86..ffcb6550fc 100644 --- a/src/who.c +++ b/src/who.c @@ -393,6 +393,8 @@ static char * make_id_equals_comment (STRUCT_UTMP const *utmp_ent) { char *comment = xmalloc (sizeof (_("id=")) + sizeof UT_ID (utmp_ent) + 1); + + /* Cast field width argument to `int' to avoid warning from gcc. */ sprintf (comment, "%s%.*s", _("id="), (int) sizeof UT_ID (utmp_ent), UT_ID (utmp_ent)); return comment;