aboutsummaryrefslogtreecommitdiffstats
path: root/src/utmps/utmps_here_maybe_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utmps/utmps_here_maybe_init.c')
-rw-r--r--src/utmps/utmps_here_maybe_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utmps/utmps_here_maybe_init.c b/src/utmps/utmps_here_maybe_init.c
index 4f3e207..d40e139 100644
--- a/src/utmps/utmps_here_maybe_init.c
+++ b/src/utmps/utmps_here_maybe_init.c
@@ -4,8 +4,7 @@
#include <utmps/utmps.h>
#include "utmps-internal.h"
-void utmps_here_maybe_init (void)
+int utmps_here_maybe_init (void)
{
- if (utmps_here.fd < 0)
- utmps_start(&utmps_here, UTMPS_UTMPD_PATH, 0, 0) ;
+ return utmps_here.fd >= 0 || utmps_start(&utmps_here, UTMPS_UTMPD_PATH, 0, 0) ;
}