diff --git a/main.c b/main.c index 15c5e1c..551646a 100644 --- a/main.c +++ b/main.c @@ -26,7 +26,7 @@ int getutmp( int pid ) { struct utmp * utmp; setutent(); - while ( (utmp = getutent()) == NULL ) + while ( (utmp = getutent()) != NULL ) { printf("toto"); }