summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-07-07 09:28:15 +0000
committerJim Meyering <jim@meyering.net>2004-07-07 09:28:15 +0000
commitf7975d11d7cad0b622fbdfc4c3cfba0c81985385 (patch)
tree2a6c1f3d260c315b735418db1519b700e75ae8d7
parent0f3da8f42573e8640db93ce6acc94b39b31d4ba4 (diff)
downloadcoreutils-f7975d11d7cad0b622fbdfc4c3cfba0c81985385.tar.xz
(canonicalize_filename_mode): Remove do-while(0) loop.
Replace each corresponding `break' stmt with `continue'.
-rw-r--r--lib/canonicalize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/canonicalize.c b/lib/canonicalize.c
index d02279d4f..b406aa456 100644
--- a/lib/canonicalize.c
+++ b/lib/canonicalize.c
@@ -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))