(canonicalize_filename_mode): Remove do-while(0) loop.

Replace each corresponding `break' stmt with `continue'.
This commit is contained in:
Jim Meyering committed 2004-07-07 09:28:15 +00:00
1 parent 0f3da8f425
commit f7975d11d7
1 file changed
+4 -4
+4 -4
View 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))