X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fsafari.c;h=96c2592969182f41c3b8766dabe0c1750c19c4b7;hb=27a6d4f7f7425896345ab5a2bfdf35a96c97416e;hp=8327bdab6fa746f9f3b517f4427aed084eb96537;hpb=deb0cef3d4d19dc6508b2fed71711b3fb1be26a2;p=idzebra-moved-to-github.git diff --git a/index/safari.c b/index/safari.c index 8327bda..96c2592 100644 --- a/index/safari.c +++ b/index/safari.c @@ -1,5 +1,5 @@ -/* $Id: safari.c,v 1.3 2006-08-16 13:16:36 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: safari.c,v 1.5 2007-01-15 15:10:17 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -81,7 +81,7 @@ static int fi_getchar(struct fi_info *fi, char *dst) { if (fi->max <= 0) return 0; - fi->max = (*fi->p->readf)(fi->p->fh, fi->buf, 4096); + fi->max = fi->p->stream->readf(fi->p->stream, fi->buf, 4096); fi->offset = 0; if (fi->max <= 0) return 0; @@ -236,7 +236,7 @@ static int filter_retrieve (void *clientData, struct recRetrieveCtrl *p) } if (!make_body) break; - r = (*p->readf)(p->fh, filter_buf + filter_ptr, 4096); + r = p->stream->readf(p->stream, filter_buf + filter_ptr, 4096); if (r <= 0) break; filter_ptr += r;