[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.5 and 1.6

version 1.5, 1995/02/27 04:13:35 version 1.6, 1997/07/13 19:15:11
Line 36 
Line 36 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
   #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)  #if defined(LIBC_SCCS) && !defined(lint)
 #if 0  #if 0
 static char sccsid[] = "@(#)glob.c      8.3 (Berkeley) 10/13/93";  static char sccsid[] = "@(#)glob.c      8.3 (Berkeley) 10/13/93";
 #else  #else
 static char rcsid[] = "$NetBSD$";  __RCSID("$NetBSD$");
 #endif  #endif
 #endif /* LIBC_SCCS and not lint */  #endif /* LIBC_SCCS and not lint */
   
Line 574  glob3(pathbuf, pathend, pattern, restpat
Line 575  glob3(pathbuf, pathend, pattern, restpat
          * and dirent.h as taking pointers to differently typed opaque           * and dirent.h as taking pointers to differently typed opaque
          * structures.           * structures.
          */           */
         struct dirent *(*readdirfunc)();          struct dirent *(*readdirfunc) __P((void *));
   
         *pathend = EOS;          *pathend = EOS;
         errno = 0;          errno = 0;
Line 596  glob3(pathbuf, pathend, pattern, restpat
Line 597  glob3(pathbuf, pathend, pattern, restpat
         if (pglob->gl_flags & GLOB_ALTDIRFUNC)          if (pglob->gl_flags & GLOB_ALTDIRFUNC)
                 readdirfunc = pglob->gl_readdir;                  readdirfunc = pglob->gl_readdir;
         else          else
                 readdirfunc = readdir;                  readdirfunc = (struct dirent *(*)__P((void *))) readdir;
         while ((dp = (*readdirfunc)(dirp))) {          while ((dp = (*readdirfunc)(dirp))) {
                 register u_char *sc;                  register u_char *sc;
                 register Char *dc;                  register Char *dc;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>