/[man-db]/man-db/src/globbing.c
ViewVC logotype

Diff of /man-db/src/globbing.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by cjwatson, Thu May 1 15:54:03 2003 UTC revision 1.17 by cjwatson, Thu May 1 16:41:12 2003 UTC
# Line 145  struct dirent_hashent { Line 145  struct dirent_hashent {
145  static void dirent_hash_free (void *defn)  static void dirent_hash_free (void *defn)
146  {  {
147          struct dirent_hashent *hashent = defn;          struct dirent_hashent *hashent = defn;
148          int i;          size_t i;
149    
150          for (i = 0; i < hashent->names_len; ++i)          for (i = 0; i < hashent->names_len; ++i)
151                  free (hashent->names[i]);                  free (hashent->names[i]);
# Line 210  int match_in_directory (const char *path Line 210  int match_in_directory (const char *path
210                          glob_t *pglob)                          glob_t *pglob)
211  {  {
212          struct dirent_hashent *cache;          struct dirent_hashent *cache;
213          int allocated = 4;          size_t allocated = 4;
214          int flags;          int flags;
215          int i;          size_t i;
216    
217          pglob->gl_pathc = 0;          pglob->gl_pathc = 0;
218          pglob->gl_pathv = NULL;          pglob->gl_pathv = NULL;

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26