]> granicus.if.org Git - shadow/commitdiff
* src/faillog.c: Re-indent.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 00:07:00 +0000 (00:07 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 00:07:00 +0000 (00:07 +0000)
ChangeLog
src/faillog.c

index 720a68c4f69a657e16ea62a3daab5588503f6ff2..5f207d434f36478b5f5f15414f55e7f4eb72ed51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-17  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/faillog.c: Re-indent.
+
 2010-03-17  Nicolas François  <nicolas.francois@centraliens.net>
 
        * lib/tcbfuncs.h: Added type shadowtcb_status.
index cafe61de493c839ee98aa7530108553f1bc7391a..8c10cab77e083daddb03b898893cabd37cad4a78 100644 (file)
@@ -288,19 +288,19 @@ static void reset (void)
                if (aflg) {
                        /* Entries for non existing users are also reset.
                         */
-               uid_t uid = 0;
+                       uid_t uid = 0;
 
-               /* Make sure we stay in the umin-umax range if specified */
-               if (has_umin) {
-                       uid = (uid_t)umin;
-               }
+                       /* Make sure we stay in the umin-umax range if specified */
+                       if (has_umin) {
+                               uid = (uid_t)umin;
+                       }
 
-               while (uid <= uidmax) {
-                       if (reset_one (uid)) {
-                               errors = true;
+                       while (uid <= uidmax) {
+                               if (reset_one (uid)) {
+                                       errors = true;
+                               }
+                               uid++;
                        }
-                       uid++;
-               }
                } else {
                        /* Only reset records for existing users.
                         */
@@ -392,32 +392,32 @@ static void setmax (int max)
                 * entries will be created.
                 */
                if (aflg) {
-               /* Entries for non existing user are also taken into
-                * account (in order to define policy for future users).
-                */
-               uid_t uid = 0;
-               /* The default umax value is based on the size of the
-                * faillog database.
-                */
-               uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
-               if (uidmax > 1) {
-                       uidmax--;
-               }
+                       /* Entries for non existing user are also taken into
+                        * account (in order to define policy for future users).
+                        */
+                       uid_t uid = 0;
+                       /* The default umax value is based on the size of the
+                        * faillog database.
+                        */
+                       uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
+                       if (uidmax > 1) {
+                               uidmax--;
+                       }
 
-               /* Make sure we stay in the umin-umax range if specified */
-               if (has_umin) {
-                       uid = (uid_t)umin;
-               }
-               if (has_umax) {
-                       uidmax = (uid_t)umax;
-               }
+                       /* Make sure we stay in the umin-umax range if specified */
+                       if (has_umin) {
+                               uid = (uid_t)umin;
+                       }
+                       if (has_umax) {
+                               uidmax = (uid_t)umax;
+                       }
 
-               while (uid <= uidmax) {
-                       if (setmax_one (uid, max)) {
-                               errors = true;
+                       while (uid <= uidmax) {
+                               if (setmax_one (uid, max)) {
+                                       errors = true;
+                               }
+                               uid++;
                        }
-                       uid++;
-               }
                } else {
                        /* Only change records for existing users.
                         */
@@ -509,32 +509,32 @@ static void set_locktime (long locktime)
                 * entries will be created.
                 */
                if (aflg) {
-               /* Entries for non existing user are also taken into
-                * account (in order to define policy for future users).
-                */
-               uid_t uid = 0;
-               /* The default umax value is based on the size of the
-                * faillog database.
-                */
-               uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
-               if (uidmax > 1) {
-                       uidmax--;
-               }
+                       /* Entries for non existing user are also taken into
+                        * account (in order to define policy for future users).
+                        */
+                       uid_t uid = 0;
+                       /* The default umax value is based on the size of the
+                        * faillog database.
+                        */
+                       uid_t uidmax = statbuf.st_size / sizeof (struct faillog);
+                       if (uidmax > 1) {
+                               uidmax--;
+                       }
 
-               /* Make sure we stay in the umin-umax range if specified */
-               if (has_umin) {
-                       uid = (uid_t)umin;
-               }
-               if (has_umax) {
-                       uidmax = (uid_t)umax;
-               }
+                       /* Make sure we stay in the umin-umax range if specified */
+                       if (has_umin) {
+                               uid = (uid_t)umin;
+                       }
+                       if (has_umax) {
+                               uidmax = (uid_t)umax;
+                       }
 
-               while (uid <= uidmax) {
-                       if (set_locktime_one (uid, locktime)) {
-                               errors = true;
+                       while (uid <= uidmax) {
+                               if (set_locktime_one (uid, locktime)) {
+                                       errors = true;
+                               }
+                               uid++;
                        }
-                       uid++;
-               }
                } else {
                        /* Only change records for existing users.
                         */