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:
1e2a59b
)
(make_id_equals_comment): Cast sizeof expression (used as field
author
Jim Meyering
<jim@meyering.net>
Sun, 28 Apr 2002 23:54:06 +0000
(23:54 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 28 Apr 2002 23:54:06 +0000
(23:54 +0000)
width argument) to `int'.
src/who.c
patch
|
blob
|
history
diff --git
a/src/who.c
b/src/who.c
index 3507b28646bcc678dd4782d45e11715257945f68..c57e14fd863fb1f3e5ac5e2812863342aa8f2cb4 100644
(file)
--- a/
src/who.c
+++ b/
src/who.c
@@
-393,7
+393,7
@@
static char *
make_id_equals_comment (STRUCT_UTMP const *utmp_ent)
{
char *comment = xmalloc (sizeof (_("id=")) + sizeof UT_ID (utmp_ent) + 1);
- sprintf (comment, "%s%.*s", _("id="), sizeof UT_ID (utmp_ent),
+ sprintf (comment, "%s%.*s", _("id="),
(int)
sizeof UT_ID (utmp_ent),
UT_ID (utmp_ent));
return comment;
}