X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fdirs.c;fp=index%2Fdirs.c;h=aa466a702a7ebf6c634fd62a2d30240c9d258e01;hb=e8899adeac7c35feef7b93af73c2026245b2a205;hp=df9768bccdbbbd1d99360a642bedc7da8e2ec843;hpb=9d8561bd741838fc97615790511774743848f031;p=idzebra-moved-to-github.git diff --git a/index/dirs.c b/index/dirs.c index df9768b..aa466a7 100644 --- a/index/dirs.c +++ b/index/dirs.c @@ -1,4 +1,4 @@ -/* $Id: dirs.c,v 1.22 2005-01-15 19:38:25 adam Exp $ +/* $Id: dirs.c,v 1.23 2005-05-09 19:57:35 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -101,7 +101,7 @@ struct dirs_info *dirs_open (Dict dict, const char *rep, int rw) return p; } -struct dirs_info *dirs_fopen (Dict dict, const char *path) +struct dirs_info *dirs_fopen (Dict dict, const char *path, int rw) { struct dirs_info *p; struct dirs_entry *entry; @@ -109,6 +109,7 @@ struct dirs_info *dirs_fopen (Dict dict, const char *path) p = (struct dirs_info *) xmalloc (sizeof(*p)); p->dict = dict; + p->rw = rw; *p->prefix = '\0'; p->entries = (struct dirs_entry *) xmalloc (sizeof(*p->entries)); p->no_read = 0;