- unsigned int users = 0;
- struct utmpx *entry = NULL;
-
- /* according to the *utent(3) man page none of the functions sets errno
- in case of an error, so we cannot do any error-checking here */
- setutxent();
-
- while (NULL != (entry = getutxent())) {
- if (USER_PROCESS == entry->ut_type) {
- ++users;
- }
- }
- endutxent();
-
- users_submit (users);
-/* #endif HAVE_GETUTXENT */
-
+ unsigned int users = 0;
+ struct utmpx *entry = NULL;
+
+ /* according to the *utent(3) man page none of the functions sets errno
+ in case of an error, so we cannot do any error-checking here */
+ setutxent();
+
+ while (NULL != (entry = getutxent())) {
+ if (USER_PROCESS == entry->ut_type) {
+ ++users;
+ }
+ }
+ endutxent();
+
+ users_submit(users);
+ /* #endif HAVE_GETUTXENT */
+