From ebbd4e8fb3078f8393567ca49d80d7fd5926f5f3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 1 Jul 2000 17:30:35 +0000 Subject: Changes by Kazuhiro Fujieda * assert.cc (__assert): Reduce dependency on newlib. * exec.cc: Eliminate unnecessary inclusion of ctype.h. * glob.c: Ditto. * hinfo.cc: Ditto. * init.cc: Ditto. * strace.cc: Ditto. * tty.cc: Ditto. * grp.cc (parse_grp): Eliminate atoi. * passwd.cc (grab_int): Ditto. * grp.cc (getgroups): Eliminate str{n,}casecmp. * path.cc (get_raw_device_number): Ditto. * path.cc (sort_by_native_name): Ditto. * spawn.cc (iscmd): Ditto. * uinfo.cc (internal_getlogin): Ditto. --- winsup/cygwin/path.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/path.cc') diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 27413afb8..1ff1e5096 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -438,12 +438,12 @@ get_raw_device_number (const char *uxname, const char *w32path, int &unit) { DWORD devn = FH_BAD; - if (strncasecmp (w32path, "\\\\.\\tape", 8) == 0) + if (strncasematch (w32path, "\\\\.\\tape", 8)) { devn = FH_TAPE; unit = digits (w32path + 8); // norewind tape devices have leading n in name - if (! strncasecmp (uxname, "/dev/n", 6)) + if (strncasematch (uxname, "/dev/n", 6)) unit += 128; } else if (isdrive (w32path + 4)) @@ -451,7 +451,7 @@ get_raw_device_number (const char *uxname, const char *w32path, int &unit) devn = FH_FLOPPY; unit = tolower (w32path[4]) - 'a'; } - else if (strncasecmp (w32path, "\\\\.\\physicaldrive", 17) == 0) + else if (strncasematch (w32path, "\\\\.\\physicaldrive", 17)) { devn = FH_FLOPPY; unit = digits (w32path + 17) + 128; @@ -1566,7 +1566,7 @@ sort_by_native_name (const void *a, const void *b) /* The two paths were the same length, so just determine normal lexical sorted order. */ - res = strcasecmp (ap->posix_path, bp->posix_path); + res = strcmp (ap->native_path, bp->native_path); if (res == 0) { -- cgit v1.2.3