summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-28 23:54:47 +0000
committerJim Meyering <jim@meyering.net>2002-04-28 23:54:47 +0000
commiteae0819e3d4e09d7263948cc25f784480ce53267 (patch)
tree2e79e819a7f090268667f03a3b5222f77968808f /src
parent550a02c909fc48ea993145dd88712f976ca6c8e0 (diff)
downloadcoreutils-eae0819e3d4e09d7263948cc25f784480ce53267.tar.xz
add comment for prev change
Diffstat (limited to 'src')
-rw-r--r--src/who.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/who.c b/src/who.c
index c57e14fd8..ffcb6550f 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;