projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
550a02c
)
add comment for prev change
author
Jim Meyering
<jim@meyering.net>
Sun, 28 Apr 2002 23:54:47 +0000
(23:54 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 28 Apr 2002 23:54:47 +0000
(23:54 +0000)
src/who.c
patch
|
blob
|
history
diff --git
a/src/who.c
b/src/who.c
index c57e14fd863fb1f3e5ac5e2812863342aa8f2cb4..ffcb6550fcf517d07e51b62b1adaf88025e47d63 100644
(file)
--- 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;