summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-22 05:57:54 +0000
committerChristopher Faylor <me@cgf.cx>2005-12-22 05:57:54 +0000
commitde935f6d9feb4a671580ad0f685a810749e8ab02 (patch)
treec9df2c01bc228f9f6f5e486efe559a9f8ef56905 /winsup/cygwin/path.cc
parent718dee922f2a168f752a7bceb93f85d114aaceb7 (diff)
downloadcygnal-de935f6d9feb4a671580ad0f685a810749e8ab02.tar.gz
cygnal-de935f6d9feb4a671580ad0f685a810749e8ab02.tar.bz2
cygnal-de935f6d9feb4a671580ad0f685a810749e8ab02.zip
whitespace cleanup to force snapshot.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 21c3b92bf..f2b56cf1f 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -247,7 +247,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
return get_errno ();
tail = strchr (tail, '\0');
if (isslash (dst[0]) && isslash (dst[1]))
- ++dst_start;
+ ++dst_start;
if (*src == '.')
{
if (tail == dst_start + 1 && *dst_start == '/')
@@ -1112,14 +1112,14 @@ normalize_win32_path (const char *src, char *dst, char *&tail)
if (beg_src_slash && isdirsep (src[1]))
{
if (isdirsep (src[2]))
- {
+ {
/* More than two slashes are just folded into one. */
src += 2;
while (isdirsep (src[1]))
++src;
}
else
- {
+ {
/* Two slashes start a network or device path. */
*tail++ = '\\';
src++;
@@ -3717,10 +3717,10 @@ realpath (const char *path, char *resolved)
{
if (!resolved)
{
- resolved = (char *) malloc (strlen (real_path.normalized_path) + 1);
- if (!resolved)
+ resolved = (char *) malloc (strlen (real_path.normalized_path) + 1);
+ if (!resolved)
return NULL;
- }
+ }
return strcpy (resolved, real_path.normalized_path);
}