summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/find_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/src/find_names.c')
-rw-r--r--contrib/cvs/src/find_names.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/contrib/cvs/src/find_names.c b/contrib/cvs/src/find_names.c
index 751ac67..cff0de1 100644
--- a/contrib/cvs/src/find_names.c
+++ b/contrib/cvs/src/find_names.c
@@ -33,11 +33,10 @@ add_entries_proc (node, closure)
Node *node;
void *closure;
{
- Entnode *entnode;
Node *fnode;
- List *filelist = (List *) closure;
+ List *filelist = closure;
+ Entnode *entnode = node->data;
- entnode = (Entnode *) node->data;
if (entnode->type != ENT_FILE)
return (0);
@@ -127,11 +126,10 @@ add_subdir_proc (p, closure)
Node *p;
void *closure;
{
- List *dirlist = (List *) closure;
- Entnode *entnode;
+ List *dirlist = closure;
+ Entnode *entnode = p->data;
Node *dnode;
- entnode = (Entnode *) p->data;
if (entnode->type != ENT_SUBDIR)
return 0;
@@ -189,7 +187,7 @@ Find_Directories (repository, which, entries)
tmpentries = NULL;
if (tmpentries != NULL)
- sdtp = (struct stickydirtag *) tmpentries->list->data;
+ sdtp = tmpentries->list->data;
/* If we do have an entries list, then if sdtp is NULL, or if
sdtp->subdirs is nonzero, all subdirectory information is
OpenPOWER on IntegriCloud