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>2011-03-29 01:21:03 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-03-29 01:21:03 +0400
commit471bbbe240f91c67130e965208db8b245ca9d429 (patch)
tree862c96a34fb6e55b19c5b51bf6cb2ec0206d401d
parent75526ad53086bddade5ec2fa9c4cb7ec222186b7 (diff)
* setfacl.c (strchrnul): Drop local implementation.
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/setfacl.c12
2 files changed, 5 insertions, 11 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 465730823..dbf5b5035 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * setfacl.c (strchrnul): Drop local implementation.
+
2011-02-15 Corinna Vinschen <corinna@vinschen.de>
* cygcheck.cc: Fix copyright dates.
diff --git a/winsup/utils/setfacl.c b/winsup/utils/setfacl.c
index f04cf2510..35689890c 100644
--- a/winsup/utils/setfacl.c
+++ b/winsup/utils/setfacl.c
@@ -1,6 +1,6 @@
/* setfacl.c
- Copyright 2000, 2001, 2002, 2003, 2006, 2008, 2009, 2010 Red Hat Inc.
+ Copyright 2000, 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 Red Hat Inc.
Written by Corinna Vinschen <vinschen@redhat.com>
@@ -71,16 +71,6 @@ mode_t getperm (char *in)
| (in[2] == 'x' ? S_IXOTH : 0);
}
-/* GNU extension. Like strchr except that if c is not found, return pointer
- to the trailing \0, rather than NULL. */
-static char *
-strchrnul (const char *s, int c)
-{
- while (*s && *s != c)
- ++s;
- return (char *) s;
-}
-
BOOL
getaclentry (action_t action, char *c, aclent_t *ace)
{