[BACK]Return to glob.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/glob.c between version 1.15 and 1.16

version 1.15, 2006/01/24 17:24:09 version 1.16, 2006/03/26 18:11:22
Line 460  glob0(pattern, pglob)
Line 460  glob0(pattern, pglob)
         glob_t *pglob;          glob_t *pglob;
 {  {
         const Char *qpatnext;          const Char *qpatnext;
         int c, error, oldpathc;          int c, error;
           __gl_size_t oldpathc;
         Char *bufnext, patbuf[MAXPATHLEN+1];          Char *bufnext, patbuf[MAXPATHLEN+1];
         size_t limit = 0;          size_t limit = 0;
   
Line 791  globextend(path, pglob, limit)
Line 792  globextend(path, pglob, limit)
         size_t *limit;          size_t *limit;
 {  {
         char **pathv;          char **pathv;
         int i;          size_t i, newsize, len;
         size_t newsize, len;  
         char *copy;          char *copy;
         const Char *p;          const Char *p;
   
Line 808  globextend(path, pglob, limit)
Line 808  globextend(path, pglob, limit)
         if (pglob->gl_pathv == NULL && pglob->gl_offs > 0) {          if (pglob->gl_pathv == NULL && pglob->gl_offs > 0) {
                 /* first time around -- clear initial gl_offs items */                  /* first time around -- clear initial gl_offs items */
                 pathv += pglob->gl_offs;                  pathv += pglob->gl_offs;
                 for (i = pglob->gl_offs; --i >= 0; )                  for (i = pglob->gl_offs + 1; --i > 0; )
                         *--pathv = NULL;                          *--pathv = NULL;
         }          }
         pglob->gl_pathv = pathv;          pglob->gl_pathv = pathv;
Line 895  void
Line 895  void
 globfree(pglob)  globfree(pglob)
         glob_t *pglob;          glob_t *pglob;
 {  {
         int i;          size_t i;
         char **pp;          char **pp;
   
         _DIAGASSERT(pglob != NULL);          _DIAGASSERT(pglob != NULL);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

CVSweb <webmaster@jp.NetBSD.org>