(list_entries_users): Use IS_USER_PROCESS
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Nov 2004 21:40:52 +0000 (21:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Nov 2004 21:40:52 +0000 (21:40 +0000)
instead of by-hand code.

src/users.c

index 83e33d9e126dacb2f54eadb45705963ff9528baa..a8851f348b92a42fafc263bba6e7abd026377edb 100644 (file)
@@ -54,11 +54,7 @@ list_entries_users (size_t n, const STRUCT_UTMP *this)
 
   while (n--)
     {
-      if (UT_USER (this) [0]
-#ifdef USER_PROCESS
-         && this->ut_type == USER_PROCESS
-#endif
-         )
+      if (IS_USER_PROCESS (this))
        {
          char *trimmed_name;