aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-03-24 21:46:09 +0000
committerChristopher Faylor <me@cgf.cx>2004-03-24 21:46:09 +0000
commit9b8c338884826b6e7ac6c7984bab702c56c6e773 (patch)
treeaa53112e556fef2848d93da29f2e93fe8c14f6dc
parent024965bdc019ee5d18a9fbc7dea44b8cb5f8f9ed (diff)
downloadnewlib-9b8c338884826b6e7ac6c7984bab702c56c6e773.zip
newlib-9b8c338884826b6e7ac6c7984bab702c56c6e773.tar.gz
newlib-9b8c338884826b6e7ac6c7984bab702c56c6e773.tar.bz2
update copyright. Minor reformatting.
-rw-r--r--winsup/cygwin/path.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index dd26d94..e602c5e 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1,6 +1,6 @@
/* path.cc: path support.
- Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
This file is part of Cygwin.
@@ -185,13 +185,13 @@ pathmatch (const char *path1, const char *path2)
: strcasematch (path1, path2);
}
+#define isslash(c) ((c) == '/')
+
/* Normalize a POSIX path.
\'s are converted to /'s in the process.
All duplicate /'s, except for 2 leading /'s, are deleted.
The result is 0 for success, or an errno error value. */
-#define isslash(c) ((c) == '/')
-
static int
normalize_posix_path (const char *src, char *dst)
{
@@ -368,7 +368,9 @@ fs_info::update (const char *win32_path)
strncpy (root_dir_storage, tmp_buf, CYG_MAX_PATH);
drive_type_storage = GetDriveType (root_dir_storage);
- if (drive_type_storage == DRIVE_REMOTE || (drive_type_storage == DRIVE_UNKNOWN && (root_dir_storage[0] == '\\' && root_dir_storage[1] == '\\')))
+ if (drive_type_storage == DRIVE_REMOTE
+ || (drive_type_storage == DRIVE_UNKNOWN
+ && (root_dir_storage[0] == '\\' && root_dir_storage[1] == '\\')))
is_remote_drive_storage = 1;
else
is_remote_drive_storage = 0;