Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-01-07 02:00:08 +0300
committerCorinna Vinschen <corinna@vinschen.de>2005-01-07 02:00:08 +0300
commit69008322efa3e4b0b844cb552719801bef3be583 (patch)
tree271a0d7b72cb9059ed7704e72ec5f4841ddb2f12 /winsup/cygwin/fhandler_process.cc
parent6e450bdeeda3734037bc606ca429f6a59131c3da (diff)
* fhandler_process.cc: Use strcasematch instead of strcasecmp
throughout.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 98276e3cd..e259044d4 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -324,7 +324,7 @@ fhandler_process::fill_filebuf ()
if (len > 4)
{
char *s = filebuf + len - 4;
- if (strcasecmp (s, ".exe") == 0)
+ if (strcasematch (s, ".exe"))
*s = 0;
}
}
@@ -392,7 +392,7 @@ format_process_stat (_pinfo *p, char *destbuf, size_t maxsize)
if (len > 4)
{
char *s = cmd + len - 4;
- if (strcasecmp (s, ".exe") == 0)
+ if (strcasematch (s, ".exe"))
*s = 0;
}
}
@@ -525,7 +525,7 @@ format_process_status (_pinfo *p, char *destbuf, size_t maxsize)
if (len > 4)
{
char *s = cmd + len - 4;
- if (strcasecmp (s, ".exe") == 0)
+ if (strcasematch (s, ".exe"))
*s = 0;
}
}