Previous commits, to keep readability of the diffs, left the code that
was previously wrapped by preprocessor coditionals untouched. Apply
some minor cosmetic changes to merge it in the surrounding code.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
* maintains a record of all login failures.
*/
-void failtmp (const char *username,
- const struct utmp *failent
- )
+void failtmp (const char *username, const struct utmp *failent)
{
const char *ftmp;
int fd;
static void update_utmp (const char *user,
const char *tty,
const char *host,
- /*@null@*/const struct utmp *utent
- );
+ /*@null@*/const struct utmp *utent);
#ifndef USE_PAM
static struct faillog faillog;
static void update_utmp (const char *user,
const char *tty,
const char *host,
- /*@null@*/const struct utmp *utent
- )
+ /*@null@*/const struct utmp *utent)
{
struct utmp *ut = prepare_utmp (user, tty, host, utent);
* for login sessions will be checked to see if the user
* is permitted to be signed on at this time.
*/
- while ((ut = getutent ()) != NULL)
- {
+ while ((ut = getutent ()) != NULL) {
if (ut->ut_type != USER_PROCESS) {
continue;
}