* libmisc/utmp.c: Avoid implicit conversion of pointers to

booleans
+ add missing changelog from last commit.
This commit is contained in:
nekral-guest
2008-06-13 18:17:10 +00:00
parent ef32209fd7
commit 43e4d608ae
2 changed files with 20 additions and 2 deletions

View File

@ -299,13 +299,13 @@ void setutmp (const char *name, const char *line, const char *host)
setutxent ();
setutent ();
while (utmpx = getutxent ()) {
while ((utmpx = getutxent ()) != NULL) {
if (utmpx->ut_pid == pid) {
found_utmpx = true;
break;
}
}
while (utmp = getutent ()) {
while ((utmp = getutent ()) != NULL) {
if (utmp->ut_pid == pid) {
found_utmp = true;
break;