]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Cosmetic fixes
authorAlejandro Colomar <alx@kernel.org>
Wed, 21 Dec 2022 17:44:06 +0000 (18:44 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 22 Dec 2022 09:31:43 +0000 (10:31 +0100)
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>
libmisc/failure.c
src/login.c
src/logoutd.c

index fb4bcde39f4aee8b97af582da8bcacc7d9899822..30d7e433ca47d938cbcb144509fd5a66e09681b3 100644 (file)
@@ -242,9 +242,7 @@ void failprint (const struct faillog *fail)
  *     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;
index eb1b20c9f0c471244fe5e3b3308818de9bfb5751..116e2cb3669c7de1b24fd7623c04cfb03f2f079c 100644 (file)
@@ -107,8 +107,7 @@ static /*@observer@*/const char *get_failent_user (/*@returned@*/const char *use
 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;
@@ -458,8 +457,7 @@ static /*@observer@*/const char *get_failent_user (/*@returned@*/const char *use
 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);
 
index 76b93086d9d110a722e2521dfab3ce0944c5f852..a4735e0e7d76b9e3617b0c22dcba36b295119bb1 100644 (file)
@@ -175,8 +175,7 @@ int main (int argc, char **argv)
                 * 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;
                        }