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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2007-01-13 10:10:14 +0300
committerChristopher Faylor <me@cgf.cx>2007-01-13 10:10:14 +0300
commitb3f40a5fd08b3ac30d27bf57defbaf02a2d2a8af (patch)
tree959877f71376476c184a90ef47f7a40d62b39844 /winsup
parentf51b3965797322a0d8076a08114872f76b748fd2 (diff)
* glob.cc: Update copyright notice with latest from FreeBSD.
(glob0): Use correct type for c variable to propagate previously detected protection.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/glob.cc8
2 files changed, 8 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index bbe8e4f62..d1a1dd191 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-13 Christopher Faylor <me@cgf.cx>
+
+ * glob.cc: Update copyright notice with latest from FreeBSD.
+ (glob0): Use correct type for c variable to propagate previously
+ detected protection.
+
2007-01-12 Corinna Vinschen <corinna@vinschen.de>
* cygheap.cc (_csbrk): Fix off-by-one error.
diff --git a/winsup/cygwin/glob.cc b/winsup/cygwin/glob.cc
index 916f997d6..6a0d4e6f1 100644
--- a/winsup/cygwin/glob.cc
+++ b/winsup/cygwin/glob.cc
@@ -13,10 +13,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -460,9 +456,9 @@ static int
glob0(const Char *pattern, glob_t *pglob, size_t *limit)
{
const Char *qpatnext;
- int c, err;
+ int err;
size_t oldpathc;
- Char *bufnext, patbuf[MAXPATHLEN];
+ Char c, *bufnext, patbuf[MAXPATHLEN];
qpatnext = globtilde(pattern, patbuf, MAXPATHLEN, pglob);
oldpathc = pglob->gl_pathc;