From 9b8c338884826b6e7ac6c7984bab702c56c6e773 Mon Sep 17 00:00:00 2001 From: Christopher Faylor <me@cgf.cx> Date: Wed, 24 Mar 2004 21:46:09 +0000 Subject: update copyright. Minor reformatting. --- winsup/cygwin/path.cc | 10 ++++++---- 1 file 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; -- cgit v1.1