* libmisc/utmp.c, src/userdel.c, src/logoutd.c: Replace #if by #ifdef

This commit is contained in:
nekral-guest
2009-04-28 20:03:23 +00:00
parent 90cc7f0f1d
commit dd85562fac
4 changed files with 26 additions and 22 deletions
+3 -3
View File
@@ -590,17 +590,17 @@ static void user_busy (const char *name, uid_t uid)
* We see if the user is logged in by looking for the user name
* in the utmp file.
*/
#if HAVE_UTMPX_H
#ifdef USE_UTMPX
struct utmpx *utent;
setutxent ();
while ((utent = getutxent ()) != NULL)
#else
#else /* !USE_UTMPX */
struct utmp *utent;
setutent ();
while ((utent = getutent ()) != NULL)
#endif
#endif /* !USE_UTMPX */
{
if (utent->ut_type != USER_PROCESS)
continue;