diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-10-31 16:23:33 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-10-31 16:23:33 +0300 |
commit | 15346b69501aff03969f596430b1dc35d22b2006 (patch) | |
tree | d2313df16bdff8875360e3c6eed790259a7fe830 /winsup/cygwin/external.cc | |
parent | 3ce8215a01ddcc6229c2e808a488a315711b98a6 (diff) |
* external.cc (get_cygdrive_info): Make inline.
(get_cygdrive_prefixes): Remove.
(cygwin_internal): Call get_cygdrive_info with NULL flag parameters
instead of get_cygdrive_prefixes.
* path.cc (mount_info::get_cygdrive_info): Allow NULL flag parameters.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index b6b64f14d..ea7ae114e 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -109,7 +109,7 @@ fillout_pinfo (pid_t pid, int winpid) return &ep; } -static DWORD +static inline DWORD get_cygdrive_info (char *user, char *system, char *user_flags, char *system_flags) { @@ -119,15 +119,6 @@ get_cygdrive_info (char *user, char *system, char *user_flags, } static DWORD -get_cygdrive_prefixes (char *user, char *system) -{ - char user_flags[CYG_MAX_PATH]; - char system_flags[CYG_MAX_PATH]; - DWORD res = get_cygdrive_info (user, system, user_flags, system_flags); - return res; -} - -static DWORD check_ntsec (const char *filename) { if (!filename) @@ -211,7 +202,7 @@ cygwin_internal (cygwin_getinfo_types t, ...) { char *user = va_arg (arg, char *); char *system = va_arg (arg, char *); - return get_cygdrive_prefixes (user, system); + return get_cygdrive_info (user, system, NULL, NULL); } case CW_GETPINFO_FULL: |