summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-27 21:31:50 +0000
committerJim Meyering <jim@meyering.net>2002-07-27 21:31:50 +0000
commit86af2dfa2993ef2354c2eb753c7bad8393cafd28 (patch)
tree1a23599891462de28c5bc11a9805811ada99c6e5
parentee16ef9929347c66fb7636bd05597d12a53e9734 (diff)
downloadcoreutils-86af2dfa2993ef2354c2eb753c7bad8393cafd28.tar.xz
(UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Remove definitions.
Now they're defined in readutmp.h. (print_deadprocs): Remove obsolete FIXME comment.
-rw-r--r--src/who.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/who.c b/src/who.c
index 156c7bc16..95db2d5f7 100644
--- a/src/who.c
+++ b/src/who.c
@@ -97,14 +97,6 @@
# define UT_ID(U) "??"
#endif
-#if HAVE_STRUCT_XTMP_UT_EXIT
-# define UT_EXIT_E_TERMINATION(U) ((U)->ut_exit.e_termination)
-# define UT_EXIT_E_EXIT(U) ((U)->ut_exit.e_exit)
-#else
-# define UT_EXIT_E_TERMINATION(U) 0
-# define UT_EXIT_E_EXIT(U) 0
-#endif
-
#define UT_TYPE_UNDEF 255
#if HAVE_STRUCT_XTMP_UT_TYPE
@@ -407,7 +399,6 @@ print_deadprocs (const STRUCT_UTMP *utmp_ent)
char *comment = make_id_equals_comment (utmp_ent);
PIDSTR_DECL_AND_INIT (pidstr, utmp_ent);
- /* FIXME: ut_exit works with GNU/Linux but is probably not portable. */
if (!exitstr)
exitstr = xmalloc (sizeof (_("term="))
+ INT_STRLEN_BOUND (UT_EXIT_E_TERMINATION (utmp_ent)) + 1