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:
78a436f
)
(list_entries_users): Use IS_USER_PROCESS
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 30 Nov 2004 21:40:52 +0000
(21:40 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 30 Nov 2004 21:40:52 +0000
(21:40 +0000)
instead of by-hand code.
src/users.c
patch
|
blob
|
history
diff --git
a/src/users.c
b/src/users.c
index 83e33d9e126dacb2f54eadb45705963ff9528baa..a8851f348b92a42fafc263bba6e7abd026377edb 100644
(file)
--- a/
src/users.c
+++ b/
src/users.c
@@
-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;