From eae0819e3d4e09d7263948cc25f784480ce53267 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 28 Apr 2002 23:54:47 +0000 Subject: [PATCH] add comment for prev change --- src/who.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.3