(UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Remove definitions.
authorJim Meyering <jim@meyering.net>
Sat, 27 Jul 2002 21:31:50 +0000 (21:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 27 Jul 2002 21:31:50 +0000 (21:31 +0000)
Now they're defined in readutmp.h.
(print_deadprocs): Remove obsolete FIXME comment.

src/who.c

index 156c7bc1607b71d6a7269d23411c29d6888dc8f3..95db2d5f7cbec889e15f215bb8d02be29ae8ce83 100644 (file)
--- a/src/who.c
+++ b/src/who.c
 # 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