* Ported to Linux's Second Extended File System as part of the
* dump and restore backup suit
* Remy Card <card@Linux.EU.Org>, 1994-1997
- * Stelian Pop <pop@cybercable.fr>, 1999
+ * Stelian Pop <stelian@popies.net>, 1999-2000
+ * Stelian Pop <stelian@popies.net> - AlcĂ´ve <www.alcove.com>, 2000-2002
*/
/*
#ifndef lint
static const char rcsid[] =
- "$Id: compatglob.c,v 1.3 1999/10/13 09:57:19 stelian Exp $";
+ "$Id: compatglob.c,v 1.8 2002/01/25 15:08:59 stelian Exp $";
#endif /* not lint */
#include <config.h>
static int
glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern, glob_t *pglob)
{
- register struct dirent *dp;
+ struct dirent *dp;
DIR *dirp;
int err;
char buf[MAXPATHLEN];
else
readdirfunc = readdir;
while ((dp = (*readdirfunc)(dirp))) {
- register u_char *sc;
- register Char *dc;
+ u_char *sc;
+ Char *dc;
/* Initial DOT must be matched literally. */
if (dp->d_name[0] == DOT && *pattern != DOT)
static int
globextend(const Char *path, glob_t *pglob)
{
- register char **pathv;
- register int i;
+ char **pathv;
+ int i;
u_int newsize;
char *copy;
const Char *p;
void
globfree(glob_t *pglob)
{
- register int i;
- register char **pp;
+ int i;
+ char **pp;
if (pglob->gl_pathv != NULL) {
pp = pglob->gl_pathv + pglob->gl_offs;
static void
g_Ctoc(const Char *str, char *buf)
{
- register char *dc;
+ char *dc;
for (dc = buf; (*dc++ = *str++) != EOS;)
continue;
static void
qprintf(const char *str, Char *s)
{
- register Char *p;
+ Char *p;
(void)printf("%s:\n", str);
for (p = s; *p; p++)