summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-15 10:46:45 +0000
committerJim Meyering <jim@meyering.net>2002-04-15 10:46:45 +0000
commit2262fbb298caa402fbbd2ece51ba4965598bb9ae (patch)
tree9fd159227781704e7824d026a395600a067c2f11 /src
parenta36a4fdedc2927a65b7a143b4acc02712e99b29b (diff)
downloadcoreutils-2262fbb298caa402fbbd2ece51ba4965598bb9ae.tar.xz
add FIXME comments
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 497c14fd5..c285fb112 100644
--- a/src/who.c
+++ b/src/who.c
@@ -365,6 +365,7 @@ print_deadprocs (const STRUCT_UTMP *utmp_ent)
sprintf (comment, "%s%.*s", _("id="), sizeof utmp_ent->ut_id,
utmp_ent->ut_id);
+ /* FIXME: ut_exit works with GNU/Linux but is probably not portable. */
if (!exitstr)
exitstr = xmalloc (sizeof (_("term="))
+ INT_STRLEN_BOUND (utmp_ent->ut_exit.e_termination) + 1
@@ -386,6 +387,7 @@ print_login (const STRUCT_UTMP *utmp_ent)
static char *comment;
PIDSTR_DECL_AND_INIT (pidstr);
+ /* FIXME: ut_id works with GNU/Linux but is probably not portable. */
if (!comment)
comment = xmalloc (sizeof (_("id=")) + sizeof (utmp_ent->ut_id) + 1);
sprintf (comment, "%s%s", _("id="), utmp_ent->ut_id);