diff --git a/main.c b/main.c index 431faa0..15c5e1c 100644 --- a/main.c +++ b/main.c @@ -25,6 +25,7 @@ int isinarray( int pid, int array[], int n ) int getutmp( int pid ) { struct utmp * utmp; + setutent(); while ( (utmp = getutent()) == NULL ) { printf("toto");