]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(canonicalize_filename_mode): Remove do-while(0) loop.
authorJim Meyering <jim@meyering.net>
Wed, 7 Jul 2004 09:28:15 +0000 (09:28 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 7 Jul 2004 09:28:15 +0000 (09:28 +0000)
Replace each corresponding `break' stmt with `continue'.

lib/canonicalize.c

index d02279d4f366a3a0775e5e6862aa76121701c7c8..b406aa4562ce5952e02e20edd3b7c91b13888e0a 100644 (file)
@@ -259,7 +259,7 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
              st.st_mode = 0;
            }
 
-         if (S_ISLNK (st.st_mode)) do
+         if (S_ISLNK (st.st_mode))
            {
              char *buf;
              size_t n, len;
@@ -269,7 +269,7 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
                {
                  __set_errno (ELOOP);
                  if (can_mode == CAN_MISSING)
-                   break;
+                   continue;
                  else
                    goto error;
                }
@@ -279,7 +279,7 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
              if (!buf)
                {
                  if (can_mode == CAN_MISSING)
-                   break;
+                   continue;
                  else
                    goto error;
                }
@@ -311,7 +311,7 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
                  while ((--dest)[-1] != '/');
 
              free (buf);
-           } while (0);
+           }
          else
            {
              if (!S_ISDIR (st.st_mode) && *end && (can_mode != CAN_MISSING))